jquery/jquery-mobile — Issue #3714: loadPage() can not correctly handle data-url with multiple parameters
Author: Azuo
Created: 2012-03-02 08:38:50+00:00
State: open

Per HTML specification, if a page is written in XHTML syntax, any "&" character must be escaped as "&amp;" (a HTML5 page contains unescaped "&" characters won't pass W3C's validation service at all).

If a data-url attribute is expected to be explictily specified for a page, and the url contains multiple parameters, e.g.:

/foo?a=1&b=2

Then the markup should be:

Currently loadPage() uses a regex to test against the HTML text to obtain the value of data-url, so it must unescape XML entities itself, otherwise, a wrong result must be returned.