W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2011

[whatwg] location.reload() on document.open()ed documents

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 28 Apr 2011 18:59:44 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1104262300390.19153@ps20323.dreamhostps.com>
On Tue, 7 Dec 2010, Boris Zbarsky wrote:
> On 12/7/10 5:10 PM, Ian Hickson wrote:
> > Per spec, currently document.open() replaces the current page rather 
> > than allow navigation.
> 
> I believe there are cases where that would cause us to break compat. 
> Note that neither IE nor Gecko does a replace load there, last I 
> checked.
> 
> > I'm not sure how to allow navigation since the Document doesn't change 
> > but still can't be reused.
> 
> What Gecko ends up doing is creating a new Document when navigating 
> history to or from a document.open() result.

I believe the spec now matches what you describe on this issue.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 28 April 2011 11:59:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:03 GMT