Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Browser title update for Ajax links (issue 581) improperly escapes HTML entities #1447

gfortytwo opened this Issue · 9 comments

9 participants

gfortytwo chrisben Todd Parker Paul Giberson James O'Cull Dominic Tobias Andreas Grunewald John Bender Ghislain Seguin

This seems to be a problem with the feature added to A4 in this issue:


If the ajax-retrieved page has a "title" tag in the header whose text contains an HTML entity (of the form ampersand-something-something-semicolon) then when the browser title is updated it shows the literal entity (the HTML source) rather than the translated character, implying that the ampersand/semicolon are being escaped.

The same problem does not seem to occur if a "data-title" attribute is provided on a "page" div.


Test scenario:

  • first page with link to another page (no special target or rel specified)

  • the linked page should have a title containing encoded html entities, for instance:

    Communiqu& eacute;s (space after ampersand just there for entity to be visible and not decoded by issues page)

When you click on that link for the first time, the new page title shows: "Communiqu& eacute;s".
Strangely enough, when you go back and then forth again you will see the title with the html entity correctly decoded: "Communiqués".

Reproduced on both iphone4 and Chrome - character encoding: utf-8 defined in meta of both pages.

Todd Parker

Thanks for the detailed report. We'll take a look at our code for the title parsing.

Paul Giberson

+1 for this, I use the same <title> for web and mobile and in web I get proper entity rendering yet the escaped versions on mobile.


Reproduced in beta1

James O'Cull

This is happening for me as well.

John Bender johnbender was assigned
Dominic Tobias

Hi I am also having this issue - any news on it or ideas for a quickfix?

Andreas Grunewald

Any updates on this ?

Andreas Grunewald

So this was planned for RC2 and got pushed out to 1.0? Are you confident that it will be in 1.0 or is there a chance that it will get pushed out again?

Ghislain Seguin gseguin was assigned
Todd Parker

We're never 100% sure, but it's still on our radar for 1.0

Timmy Willison timmywil referenced this issue from a commit in timmywil/jquery-mobile
Garann Means garann Fix for #1447 - create element and read text from there to unescape e…
…ntities in page title
Ghislain Seguin gseguin closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.