W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2007

[whatwg] hashchange only dispatched in history traversal

From: Maciej Stachowiak <mjs@apple.com>
Date: Fri, 10 Aug 2007 15:11:27 -0700
Message-ID: <B551B801-B4C0-4E92-94A7-44F7FCBCDE4D@apple.com>

On Aug 10, 2007, at 12:35 PM, Ian Hickson wrote:

> ...leads to something that isn't IMHO that much clearer or better than
> what we have now:
>   onhashchanged=""
> The advantage of "hashchanged" is that it is very literal -- the  
> attribute
> called "hash" changed just before the event fired.

It's not firing on the location object, though, and A elements also  
have a "hash" attribute. So the relationship is a little indirect.

> But, I'm very open to changing the event name. What would you suggest?

Some suggestions:

onfragmentscroll (thought it might not scroll if nothing has that  
fragment ID)
onfragmentload (not quite accurate but reminiscent of onload)

Received on Friday, 10 August 2007 15:11:27 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:36 UTC