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: | shinigam8@yahoo.com.br | Owned by: | shinigam8@yahoo.com.br |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.7 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
This code not run in IE8, but in others browsers run.
<html> <head> <title>TEST</title> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("button").click(function(){ alert($("title").text()); $("title").html("Hello World!"); alert($("title").text()); }); }); </script> </head> <body> <h2>This is a heading</h2> <p>This is a paragraph.</p> <p>This is another paragraph.</p> <button>Click me</button> </body> </html>
Attachments (0)
Change History (6)
Changed February 12, 2012 01:27PM UTC by comment:1
owner: | → shinigam8@yahoo.com.br |
---|---|
status: | new → pending |
Changed February 12, 2012 01:37PM UTC by comment:3
status: | pending → open |
---|
Changed February 12, 2012 01:38PM UTC by comment:4
resolution: | → duplicate |
---|---|
status: | open → closed |
You have at least two options for getting/setting the document title. With jQuery you can use:
$(document).attr('title',title);
or for a simpler cross-browser compatible version:
var currentTitle = document.title; document.title = 'something else';
Changed February 12, 2012 03:10PM UTC by comment:6
thanks for your help!
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: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to get started.