W3C home > Mailing lists > Public > public-webapi@w3.org > June 2007

Running <script> in non-active documents

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 1 Jun 2007 00:47:34 +0000 (UTC)
To: Boris Zbarsky <bzbarsky@MIT.EDU>
Cc: "Web APIs WG (public)" <public-webapi@w3.org>
Message-ID: <Pine.LNX.4.64.0706010046140.23576@dhalsim.dreamhost.com>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:57 GMT