- From: Ian Hickson <ian@hixie.ch>
- Date: Thu, 9 Jul 2009 05:08:05 +0000 (UTC)
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: http://www.whatwg.org/specs/web-apps/current-work/#navigate ...which, in step 4, just scrolls and aborts the algorithm without actually changing the active Document object. HTH, -- 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