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

Commit 9469109

Browse files
author
Gabriel Schulhof
committed
Pagecontainer: Escape dataUrl when trying to find page based on it
Closes gh-7474 Fixes gh-1383
1 parent 54b5fb8 commit 9469109

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
@@ -362,7 +362,8 @@ define( [
362362
// NOTE do _not_ use the :jqmData pseudo selector because parenthesis
363363
// are a valid url char and it breaks on the first occurence
364364
page = this.element
365-
.children( "[data-" + this._getNs() +"url='" + dataUrl + "']" );
365+
.children( "[data-" + this._getNs() +
366+
"url='" + $.mobile.path.hashToSelector( dataUrl ) + "']" );
366367

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

0 commit comments

Comments
 (0)