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

[whatwg] <a onlyreplace>

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Sun, 18 Oct 2009 09:06:51 -0500
Message-ID: <dd0fbad0910180706j3d886958r3ba7a0d6444ae6a@mail.gmail.com>
On Sat, Oct 17, 2009 at 2:45 PM, Nelson Menezes
<flying.mushroom at gmail.com> wrote:
> 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:
>
> http://test.fittopage.org/page1.php

Awesome, Nelson!  Seems to work pretty cool!

I'll hack on it a bit today, see if I can make it a bit more featureful.

~TJ
Received on Sunday, 18 October 2009 07:06:51 UTC

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