[whatwg] hashchange only dispatched in history traversal

On 8/14/07, Ian Hickson <ian at hixie.ch> wrote:
> On Sat, 11 Aug 2007, Michael A. Puls II wrote:
> > I like "hashchange" even if it's not perfectly descriptive.
> >
> > However, "fragmentidentifierchange" although long, isn't much longer
> > than DOMAttributeModified
> > and is shorter than say, DOMNodeRemovedFromDocument.
> >
> > addEventListener("fragmentidentifierchange" doesn't seem too bad to me.
> >
> > And, if for some reason you wanted it shortened in your script, you
> > could just do:
> >
> > var hashchange = "fragmentidentifierchange";
> > a.addEventListener(hashchange
> > b.addEventListener(hashchange
> > c.addEventListener(hashchange
>
> I don't know.
>
>    <body onfragmentidentifierchange="">
>
> ...seems a bit overly long to me, still.

True. As an attribute with the "on" part, it looks pretty bad.

-- 
Michael

Received on Tuesday, 14 August 2007 23:47:23 UTC