Running <script> in non-active documents

On Thu, 6 Apr 2006, Boris Zbarsky wrote:
>
> Ian Hickson wrote:
> >
> > The case I was particularly concerned about was not "presented" vs 
> > "not presented", but "has its own global scripting context" and "is 
> > neutral to script". A document in an IFRAME has its own Window -- if 
> > you have navigated away from that document, but still have a handle to 
> > it, does it execute <script> elements that you insert into it?
> 
> The current answer in Gecko seems to be "maybe, possibly depending on 
> what else is going on".  In particular, it may depend on whether the 
> document got placed in back/forward cache, the exact Gecko version 
> (there are some patches that may inadvertently affect this), etc.  See 
> https://bugzilla.mozilla.org/show_bug.cgi?id=293175 for more information 
> on part of the issue...
> 
> I would say that ideally the answer here would be "no".

HTML5 spec now says "no" on this.

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

Received on Friday, 1 June 2007 00:47:45 UTC