From d85e7aa0c19a662d9682b0fdf8992e69e0bb012e Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Thu, 24 Dec 2015 12:16:24 -0500 Subject: [PATCH] switch to WHATWG spec on --- parse-html.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parse-html.coffee b/parse-html.coffee index 4a93f05..ed0070a 100644 --- a/parse-html.coffee +++ b/parse-html.coffee @@ -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() -- 1.7.10.4