JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
switch to WHATWG spec on </b foo="bar">
authorJason Woofenden <jason@jasonwoof.com>
Thu, 24 Dec 2015 17:16:24 +0000 (12:16 -0500)
committerJason Woofenden <jason@jasonwoof.com>
Thu, 24 Dec 2015 17:16:24 +0000 (12:16 -0500)
parse-html.coffee

index 4a93f05..ed0070a 100644 (file)
@@ -2157,7 +2157,8 @@ parse_html = (args) ->
                        return
                if t.type is TYPE_END_TAG and t.name is 'br'
                        parse_error()
-                       t.type = TYPE_START_TAG
+                       # W3C: t.type = TYPE_START_TAG
+                       t = new_open_tag 'br' # WHATWG
                        # fall through
                if t.type is TYPE_START_TAG and (t.name is 'area' or t.name is 'br' or t.name is 'embed' or t.name is 'img' or t.name is 'keygen' or t.name is 'wbr')
                        reconstruct_afe()