From d587c1eebd6a22ee9e7ec63b07f03255a7d9f688 Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Thu, 24 Dec 2015 12:12:23 -0500 Subject: [PATCH] fix space before > at end of tag --- parse-html.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 1.7.10.4