[whatwg] hashchange only dispatched in history traversal
Michael A. Puls II
shadow2531 at gmail.com
Tue Aug 14 23:47:23 PDT 2007
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.
More information about the whatwg