[whatwg] window.open question...

Ian Hickson ian at hixie.ch
Sat Jan 1 00:44:43 PST 2011


On Mon, 27 Sep 2010, Biju wrote:
>
> Question, whether html5 spec is specific about behavior for steps at...
> https://bugzilla.mozilla.org/show_bug.cgi?id=197709#c0
> 
> See also https://bugzilla.mozilla.org/show_bug.cgi?id=197709#c3
> 
> I dont see HTML5 is specific about it at
> http://www.w3.org/TR/html5/browsers.html#dom-open
> http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#dom-open
> 
> So I think that Firefox bug report is invalid, but want to confirm....

As far as I can tell the HTML spec defines all this. See the "navigate" 
algorithm for details on what happens when a page loads, including when a 
new Window object is created:

   http://www.whatwg.org/specs/web-apps/current-work/complete.html#navigate

Note in particular the exception listed under "creating a new Document 
object", which may be relevant here.

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


More information about the whatwg mailing list