summaryrefslogtreecommitdiff
path: root/src/tokeniser
diff options
context:
space:
mode:
authorRupinder Singh Khokhar <rsk1coder99@gmail.com>2014-07-06 12:23:52 +0530
committerRupinder Singh Khokhar <rsk1coder99@gmail.com>2014-08-01 21:44:31 +0530
commit5071b7de0bcef67bc9b996cbae3d3d187abe11b5 (patch)
tree6b72053307a9352f7b2529879995c6a6b1447164 /src/tokeniser
parent822eeb3eb98a0346023222eab539138e61fd74eb (diff)
downloadlibhubbub-5071b7de0bcef67bc9b996cbae3d3d187abe11b5.tar.gz
libhubbub-5071b7de0bcef67bc9b996cbae3d3d187abe11b5.tar.bz2
Fixed enumerator entries & name-type mapping. Also fixed the option/optgroup tag starting handler. Also emitted on encountering a '<' in script related state. Also fixed the check for special element.
Diffstat (limited to 'src/tokeniser')
-rw-r--r--src/tokeniser/tokeniser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tokeniser/tokeniser.c b/src/tokeniser/tokeniser.c
index 158d09a..1d16ba4 100644
--- a/src/tokeniser/tokeniser.c
+++ b/src/tokeniser/tokeniser.c
@@ -1339,6 +1339,8 @@ hubbub_error hubbub_tokeniser_handle_script_data_escaped_dash(hubbub_tokeniser *
tokeniser->context.pending += len;
} else if(c == '<') {
+ /*emit any pending characters*/
+ emit_current_chars(tokeniser);
if(tokeniser->state == STATE_SCRIPT_DATA_ESCAPED_DASH ||
tokeniser->state == STATE_SCRIPT_DATA_ESCAPED_DASH_DASH) {
tokeniser->state = STATE_SCRIPT_DATA_ESCAPED_LESS_THAN;