[whatwg] The choice of script global object to use when the script element is moved

On Wed, 2 Feb 2011, Henri Sivonen wrote:
> On Feb 2, 2011, at 03:07, Ian Hickson wrote:
> 
> > I suppose we could make it so that scripts get neutered when the document 
> > that they were first associated with gets unloaded. Would that work?
> 
> We did something different.
> 
> > Proposal #1:
> 
> Proposal #4 (what Gecko now does):
> 
>  * If at the time when the parser triggers the 'run' algorithm, the owner document of the script is not the same document whose active parser the parser is, set the 'already executed' flag and abort the steps.
> 
>  * If at the time of a script becoming available for evaluation the owner document of the script is not the same document that was the owner document at the time of the 'run' algorithm, don't evaluate the script.
> 
> See https://bugzilla.mozilla.org/show_bug.cgi?id=592366

I believe this is what the spec now says (this was fixed in response to a 
bug that was filed, IIRC). Please let me know if it's still broken.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Monday, 6 June 2011 16:17:14 UTC