Re: [w3c/DOM-Parsing] Step 4 of createContextualFragment is not enough (#15)

"Already started" for scripts in that case not cames from [A start tag whose tag name is "script"](https://html.spec.whatwg.org/multipage/syntax.html#scriptTag), step 4.? But looks like that step 3. here is more interesting because set "parser-inserted" and don't mention anything about "fragment case", so I assume that this will apply also here.

Here we have 2 transition for scripts, first is parser that it creates them and inserts to transitional document (HTML fragment parsing algorithm, all flags are set here), parser's result are inserted to `DocumentFragment` node and we get this node as result of `createContextualFragment`.

But in the end we stuck with the same problem, unmark "already started" in P&S spec. but "parser-inserted" still exists, so when `createContextualFragment` return script then [prepare a script] (https://html.spec.whatwg.org/multipage/scripting.html#script-processing-model:the-script-element-14) will never happend when we try move script from `DocumentFragment` to `Document` with context object, so yes, looks like this flag also should be unset.

FWIW, unset this both flags was done in old WHATWG P&S spec., but then it was changed to only included "already started" in actual spec (I can't find bug explaning why this was done but I remember it exist somwhere).
https://rawgit.com/whatwg/domparsing/edc795ccfdc03e396197bf81a0f550105930e90b/source.html



---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/DOM-Parsing/issues/15#issuecomment-223998172

Received on Monday, 6 June 2016 15:41:19 UTC