From: Jason Woofenden Date: Thu, 24 Dec 2015 17:16:24 +0000 (-0500) Subject: switch to WHATWG spec on X-Git-Url: https://jasonwoof.com/gitweb/?p=peach-html5-editor.git;a=commitdiff_plain;h=d85e7aa0c19a662d9682b0fdf8992e69e0bb012e switch to WHATWG spec on --- 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()