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

[whatwg] hashchange only dispatched in history traversal

From: Michael A. Puls II <shadow2531@gmail.com>
Date: Wed, 15 Aug 2007 02:47:23 -0400
Message-ID: <6b9c91b20708142347r70725974ub4a27b26e3e2581d@mail.gmail.com>
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

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