Skip to main content

Bug Tracker

Side navigation

#6899 closed bug (duplicate)

Opened August 11, 2010 07:37PM UTC

Closed February 18, 2011 01:47PM UTC

Last modified February 18, 2011 01:47PM UTC

using .html() to change title causes errors in IE

Reported by: pendletongp Owned by:
Priority: low Milestone:
Component: manipulation Version: 1.4.2
Keywords: Cc:
Blocked by: Blocking:
Description

I tried to use the html() method to automatically unescape a string containing html entities to change the title in my page as the content changes via ajax. I realize that search engine spiders do not see this... I am doing it for the benefit of the users of the page who request a new page be loaded via ajax.

Example code:

$("title").html("Sweet title • with html escaped chars");

This produces an error on IE. I tested IE7 and 8 and both had an exception.

For now I am just using document.title = $("<div>"+str+"</div>").html(); to handle the unescaping but I figured I would report the bug.

Attachments (0)
Change History (4)

Changed August 11, 2010 10:54PM UTC by dmethvin comment:1

resolution: → duplicate
status: newclosed

Dup of #5881; use

document.title
to set the title.

Changed February 18, 2011 01:47PM UTC by jitter comment:2

component: coremanipulation
milestone: 1.4.3
priority: → low
resolution: duplicate
status: closedreopened

Changed February 18, 2011 01:47PM UTC by jitter comment:3

resolution: → duplicate
status: reopenedclosed

Changed February 18, 2011 01:47PM UTC by jitter comment:4

Duplicate of #2755.