This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
changePage breaks when data hash contains parentheses/apostropes #1383
Closed
Description
The following causes a syntax error in alpha 4:
$.mobile.changePage({url: "index.html", data: {foo: "bar(baz)"}, type: "get"});
In Firefox 4, the error message in Firebug's console is:
"Syntax error, unrecognized expression: data-url='index.html?foo=bar(baz]')"
Attempts to change the page without the parentheses work fine, such as:
$.mobile.changePage({url: "index.html", data: {foo: "bar"}, type: "get"});