Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
peach-html5-editor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d587c1e
)
switch to WHATWG spec on </b foo="bar">
author
Jason Woofenden
<jason@jasonwoof.com>
Thu, 24 Dec 2015 17:16:24 +0000
(12:16 -0500)
committer
Jason Woofenden
<jason@jasonwoof.com>
Thu, 24 Dec 2015 17:16:24 +0000
(12:16 -0500)
parse-html.coffee
patch
|
blob
|
history
diff --git
a/parse-html.coffee
b/parse-html.coffee
index
4a93f05
..
ed0070a
100644
(file)
--- 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()
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()
# 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()