[Bug 11191] Run scripts based on a parser flag rather than on being a fragment parser

http://www.w3.org/Bugs/Public/show_bug.cgi?id=11191

--- Comment #12 from Henri Sivonen <hsivonen@iki.fi> 2011-05-06 07:31:54 UTC ---
Oops. I should have responded here earlier.

In Firefox, Range::createContextualFragment is equivalent to building the
fragment manually using createElementNS and appendChild. The spec already
informatively says that XSLTProcessor::transformToFragment works like this,
too.

In Firefox, the parser has a "prevent execution" flag that can be set to true
in the fragment case. If it is set to true, the parser sets the "already
started" flag on script elements instead of attempting to run them. If it is
not set, the parser doesn't set the "already started" flag on the scripts (and
doesn't run the scripts, either, because they aren't in a document at the time
of the parse).

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 6 May 2011 07:31:58 UTC