[Bug 11323] Don't run scripts when the owner doc isn't the inserter parser's doc or when the owner doc is not the same at "run" and "execute" time

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

--- Comment #2 from Ian 'Hixie' Hickson <ian@hixie.ch> 2011-02-08 20:56:33 UTC ---
For #1, I propose to add the following step after the  "The user agent must set
the element's "already started" flag." step of "run":

9a. If the element has been flagged as "parser-inserted", and the element's
Document is not the Document of the parser that created the element, then abort
these steps.


For #2, I propose to wrap the whole "execute" algorithm in a new <ol>, put the
existing stuff as step 2 of that <ol>, and make the following step 1:

1. If the element has been flagged as "parser-inserted", and the element's
Document is not the Document of the parser that created the element, then abort
these steps.


I'll deal with the WHATWG feedback cited in comment 1 as part of dealing with
e-mail feedback.


Are the above proposals acceptable solutions to this bug?

-- 
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 Tuesday, 8 February 2011 20:56:35 UTC