meekostuff / HTMLDecor

HTMLDecor means full separation of content from presentation. With CSS you can change the styling of a whole site with one stylesheet. With HTMLDecor you can change everything - banner, navbars, ads, page-layout and stylesheets. This facilitates API-first / HTML-payload sites which are simple, robust and low-bandwidth, plus "pushState assisted navigation" comes for free.
http://meekostuff.net/projects/HTMLDecor/
Mozilla Public License 2.0
23 stars 4 forks source link

Android 2.2 / 2.3 has buggy history.pushState() #22

Open shogun70 opened 10 years ago

shogun70 commented 10 years ago

window.location is not updated by history.pushState(), see the bug report.

Surprisingly this only seems to break hash navigation - that's the only thing location is used for.

This could be worked around by parsing document.URL for the hash

OR

by detecting the buggy behavior and treating those browsers as not pushState enabled.

shogun70 commented 10 years ago

Other browsers also have bugs / inconsistencies for history.pushState. See

shogun70 commented 10 years ago

One day this could be addressed by detecting history state-management support with:

'state' in history