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
(from parent 1:
dc0f845
)
parser fix: set .parent on text nodes
author
Jason Woofenden
<jason@jasonwoof.com>
Mon, 1 Feb 2016 22:49:22 +0000
(17:49 -0500)
committer
Jason Woofenden
<jason@jasonwoof.com>
Mon, 1 Feb 2016 22:49:22 +0000
(17:49 -0500)
parser.coffee
patch
|
blob
|
history
diff --git
a/parser.coffee
b/parser.coffee
index
aa7233e
..
7992244
100644
(file)
--- a/
parser.coffee
+++ b/
parser.coffee
@@
-1246,6
+1246,7
@@
parse_html = (args_html, args = {}) ->
prev.text += t.text
return
dest[0].children.splice dest[1], 0, t
+ t.parent = dest[0]
return
# 8.2.5 http://www.w3.org/TR/html5/syntax.html#tree-construction