W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2009

[whatwg] setting location.hash property and browser reload

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 9 Jul 2009 05:08:05 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0907090502230.1976@hixie.dreamhostps.com>
On Wed, 8 Jul 2009, Peter Michaux wrote:
> When setting the location.hash property, some older browsers reloaded 
> the entire page. The newest versions of the major browsers doe not 
> reload the page when setting location.hash. This seems to be now de 
> facto standard behavior. Sites like Yahoo Maps! depends on the page not 
> reloading when setting location.hash for a good user experience.
> I'm not aware of any standard guaranteeing there is no page reload when 
> setting location.hash. Will HTML5 make such a guarantee? I cannot find 
> anything in the spec.

HTML5 requires that there not be a reload. Setting location.hash 
eventually (if you follow the admittedly convoluted definitions) is 
equivalent to running the navigation algorithm:


...which, in step 4, just scrolls and aborts the algorithm without 
actually changing the active Document object.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 8 July 2009 22:08:05 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:14 UTC