X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=parse-html.coffee;h=255892f331732d2e633d3b0058c93ecaf8fa2c76;hb=4f6b7602d0d0a1ac0e7d781747fa7f96878e2b69;hp=d452803d19686026df20e525109c4cd004e21789;hpb=0bc074bd5f825a287e00a54ac242ae2949d7f708;p=peach-html5-editor.git diff --git a/parse-html.coffee b/parse-html.coffee index d452803..255892f 100644 --- a/parse-html.coffee +++ b/parse-html.coffee @@ -1395,6 +1395,7 @@ parse_html = (args) -> el = insert_html_element t head_element_pointer = el ins_mode = ins_mode_in_head + return if t.type is TYPE_END_TAG if t.name is 'head' or t.name is 'body' or t.name is 'html' or t.name is 'br' # fall through to Anything else below @@ -3735,7 +3736,7 @@ parse_html = (args) -> return # Otherwise parse_error() - tok_cur_tag = new_comment_token '!' # TODO test ("!" right?) + tok_cur_tag = new_comment_token '' tok_state = tok_state_bogus_comment return @@ -4413,6 +4414,8 @@ parse_html = (args) -> # tokenizer initialization tok_state = tok_state_data + if args.name is "one_that_breaks #1" + throw "hi" # console.log "hi" # proccess input # http://www.w3.org/TR/html5/syntax.html#tree-construction while flag_parsing