Skip to main content

Bug Tracker

Side navigation

#11333 closed bug (duplicate)

Opened February 12, 2012 12:54PM UTC

Closed February 12, 2012 01:38PM UTC

Last modified February 12, 2012 03:10PM UTC

DOM bug: problem in IE8

Reported by: Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7
Keywords: Cc:
Blocked by: Blocking:

This code not run in IE8, but in others browsers run.

<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
    $("title").html("Hello World!");

<h2>This is a heading</h2>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
<button>Click me</button>
Attachments (0)
Change History (6)

Changed February 12, 2012 01:27PM UTC by sindresorhus comment:1

owner: →
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.

Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: Open the link and click to "Fork" (in the top menu) to get started.

Changed February 12, 2012 01:30PM UTC by sindresorhus comment:2

#11331 is a duplicate of this ticket.

Changed February 12, 2012 01:37PM UTC by addyosmani comment:3

status: pendingopen

Changed February 12, 2012 01:38PM UTC by addyosmani comment:4

resolution: → duplicate
status: openclosed

You have at least two options for getting/setting the document title. With jQuery you can use:


or for a simpler cross-browser compatible version:

var currentTitle = document.title;
document.title = 'something else';

Changed February 12, 2012 01:38PM UTC by addyosmani comment:5

Duplicate of #2755.

Changed February 12, 2012 03:10PM UTC by anonymous comment:6

thanks for your help!