jquery/jquery-mobile — Issue #3240: on Android, history.replaceState() throws a DOMException in PhoneGap but not in native browser
Author: ucavus
Created: 2011-12-09 04:01:13+00:00
State: open

It occurs on my 2.3.3 AVD (but not on my 2.1 AVD, nor desktop browsers). I'm using jQuery Mobile 1.0's changePage() to post data to an external form, an exception is thrown on line 3536 of http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.js when it uses history.replaceState()

When I caught the exceptions,
`state` is like `{"hash":"#http://a-host.tld/form.php","title":"A Title","initialHref":"file:///android_asset/www/index.html"}`
`document.title` is like `"A Title"`
`href` is like `http://a-host.tld/form.php`

The form returns a proper jQuery mobile page with its own unique id, so I'm not sure why jQM is using the full url in the `hash` property, instead of the new page's id.