W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > May 2011

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

From: <bugzilla@jessica.w3.org>
Date: Fri, 06 May 2011 07:31:56 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1QIFW0-0001SP-Ow@jessica.w3.org>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 16:31:09 UTC