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

Ian Hickson ian at hixie.ch
Thu Apr 28 11:59:44 PDT 2011


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.   `._.-(,_..'--(,_..'`-.;.'


More information about the whatwg mailing list