JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fix space before > at end of tag
authorJason Woofenden <jason@jasonwoof.com>
Thu, 24 Dec 2015 17:12:23 +0000 (12:12 -0500)
committerJason Woofenden <jason@jasonwoof.com>
Thu, 24 Dec 2015 17:12:23 +0000 (12:12 -0500)
parse-html.coffee

index 487fe99..4a93f05 100644 (file)
@@ -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