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

Commit 7446992

Browse files
author
Gabriel Schulhof
committed
Navigation: When choosing the title, it is unnecessary to escape entities, since the result will be assigned to document.title (which can presumably accept an unencoded string). Fixes #5749.
1 parent e5922fa commit 7446992

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/jquery.mobile.navigation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ define( [
872872

873873
// if title element wasn't found, try the page div data attr too
874874
// If this is a deep-link or a reload ( active === undefined ) then just use pageTitle
875-
var newPageTitle = ( !active )? pageTitle : toPage.jqmData( "title" ) || toPage.children( ":jqmData(role='header')" ).find( ".ui-title" ).getEncodedText();
875+
var newPageTitle = ( !active )? pageTitle : toPage.jqmData( "title" ) || toPage.children( ":jqmData(role='header')" ).find( ".ui-title" ).text();
876876
if ( !!newPageTitle && pageTitle === document.title ) {
877877
pageTitle = newPageTitle;
878878
}

0 commit comments

Comments
 (0)