Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
peach-html5-editor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
set node.parent on <script> and comments
[peach-html5-editor.git]
/
parser.js
diff --git
a/parser.js
b/parser.js
index
4493ed1
..
1d8a53a
100644
(file)
--- a/
parser.js
+++ b/
parser.js
@@
-1673,6
+1673,7
@@
parse_html = function (args_html, args) {
position = adjusted_insertion_location()
}
position[0].children.splice(position[1], 0, t)
position = adjusted_insertion_location()
}
position[0].children.splice(position[1], 0, t)
+ t.parent = position[0]
return
}
return
}
@@
-1919,6
+1920,7
@@
parse_html = function (args_html, args) {
el.flag('parser-inserted', true)
// fixfull frament case
ail[0].children.splice(ail[1], 0, el)
el.flag('parser-inserted', true)
// fixfull frament case
ail[0].children.splice(ail[1], 0, el)
+ el.parent = ail[0]
open_els.unshift(el)
tok_state = tok_state_script_data
original_ins_mode = ins_mode // make sure orig... is defined
open_els.unshift(el)
tok_state = tok_state_script_data
original_ins_mode = ins_mode // make sure orig... is defined