Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Parenthesis in URL leads to javascript errors in Firefox #1408

Closed
hiroprotagonist opened this issue Apr 8, 2011 · 3 comments
Closed

Parenthesis in URL leads to javascript errors in Firefox #1408

hiroprotagonist opened this issue Apr 8, 2011 · 3 comments

Comments

@hiroprotagonist
Copy link

If using URLs containing parenthesis in Mozilla Firefox, there is a problem with the location.hash.
The handling of URLs with parenthesis for example when hitting the back or forward button leads to Syntax Errors in Firefox JavaScript Engine: uncaught exception: Syntax error, unrecognized expression: data-url='...(...'
The Exception is thrown by Sizzle.

This error is thrown at serveral positions in jQuery Mobile code, for example:
to = $( ":jqmData(url='" + url + "')" ); "jquery.mobile.navigation.js"

Why

Parenthesis are must not be url encoded so ff wont do it in opposite to webkit browsers

Reproduce

Use Parenthesis in Forward URL. Click Backbutton in FF(all version).

Workarroud

https://github.com/hiroprotagonist/jquery-mobile/commit/762a3487b14a79eed20ed076f0c67da409fe36bd

@konklone
Copy link

This is a duplicate of #1383.

@mckamey
Copy link

mckamey commented Apr 19, 2011

Note: Apostrope/Single-Quote also break changePage.

Issues #1383, #1408, #1468 are related.

Issue #1468 describes a workaround.

@toddparker
Copy link
Contributor

Closing as a duplicate of #1383

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants