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

Commit 0667431

Browse files
author
Gabriel Schulhof
committed
Pagecontainer: Escape dataUrl when trying to find page based on it
Fixes gh-1383
1 parent 4351474 commit 0667431

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

js/widgets/pagecontainer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,8 @@ define( [
357357
// NOTE do _not_ use the :jqmData pseudo selector because parenthesis
358358
// are a valid url char and it breaks on the first occurence
359359
page = this.element
360-
.children( "[data-" + this._getNs() +"url='" + dataUrl + "']" );
360+
.children( "[data-" + this._getNs() +
361+
"url='" + $.mobile.path.hashToSelector( dataUrl ) + "']" );
361362

362363
// If we failed to find the page, check to see if the url is a
363364
// reference to an embedded page. If so, it may have been dynamically

0 commit comments

Comments
 (0)