X-Git-Url: https://jasonwoof.com/gitweb/?p=peach-html5-editor.git;a=blobdiff_plain;f=parser.js;h=1d8a53ac05647e85043700e6b1dde90add460361;hp=4493ed11743a523b2e87e40095da85fabc071c68;hb=HEAD;hpb=4ec99c39c0180df2d6380cb11c86b6e5f13292cf diff --git a/parser.js b/parser.js index 4493ed1..1d8a53a 100644 --- 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) + t.parent = position[0] 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.parent = ail[0] open_els.unshift(el) tok_state = tok_state_script_data original_ins_mode = ins_mode // make sure orig... is defined