W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2009

[whatwg] <a onlyreplace>

From: Nelson Menezes <flying.mushroom@gmail.com>
Date: Sat, 17 Oct 2009 21:45:20 +0200
Message-ID: <a440ea080910171245v1246aec9l1ae3f6e9b6aa28e7@mail.gmail.com>
2009/10/17 Jonas Sicking <jonas at sicking.cc>:
> In fact, you don't even need to use pushState. For now this can be
> faked using onhashchange and fragment identifier tricks. It's
> certainly not as elegant as pushState (that is, after all, why
> pushState was added), but it's something that can be tried today.

Well, here's a badly-hacked-together solution that emulates this behaviour...

I think it'll be helpful even if it only gets used in a JS library as
you mention (change the attribute to a classname then). Still, it can
be made to work with today's browsers:


Nelson Menezes
Received on Saturday, 17 October 2009 12:45:20 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:18 UTC