From: Jason Woofenden Date: Thu, 24 Dec 2015 17:12:23 +0000 (-0500) Subject: fix space before > at end of tag X-Git-Url: https://jasonwoof.com/gitweb/?p=peach-html5-editor.git;a=commitdiff_plain;h=d587c1eebd6a22ee9e7ec63b07f03255a7d9f688 fix space before > at end of tag --- diff --git a/parse-html.coffee b/parse-html.coffee index 487fe99..4a93f05 100644 --- a/parse-html.coffee +++ b/parse-html.coffee @@ -3789,7 +3789,7 @@ parse_html = (args) -> return if c is '>' tok_state = tok_state_data - return + return tok_cur_tag if is_uc_alpha(c) tok_cur_tag.attrs_a.unshift [c.toLowerCase(), ''] tok_state = tok_state_attribute_name @@ -4685,7 +4685,7 @@ parse_html = (args) -> txt = txt.replace(new RegExp("\r\n", 'g'), "\n") # fixfull spec doesn't say this txt = txt.replace(new RegExp("\r", 'g'), "\n") # fixfull spec doesn't say this - if args.name is "tests23.dat #1" + if args.name is "webkit01.dat #12" console.log "hi" # proccess input # http://www.w3.org/TR/html5/syntax.html#tree-construction