jquery/jquery-mobile — Issue #3099: data-url and ampersand
Author: DatenMetzgerX
Created: 2011-11-18 07:49:13+00:00
State: open

Hy

If I render a page with a data-url attribute that has ampersands in the url, the url is not correclty set into the browser address bar.
An example:

...

.

JQuery Mobile will take the url 1:1 and paste it into the address bar. But either it should replace all & with &. I've seen that when JQuery Mobile sets the data-url attribute, it doesn't escape the & what is not xml valid.
Either I can't just forgot about the escaping because I'm using an XML Framework for rendering the page content that automaticaly escapes all invalid characters in the attributes.

An issue that I see If you escape & is, that the invalid urls won't work anymore.