Skip to main content

Bug Tracker

Side navigation

#2755 closed bug (wontfix)

Opened April 28, 2008 08:11PM UTC

Closed May 01, 2008 06:50AM UTC

Last modified January 07, 2013 03:58AM UTC

Update of the <title> tag

Reported by: azrail Owned by:
Priority: low Milestone:
Component: manipulation Version: 1.2.3
Keywords: Cc:
Blocked by: Blocking:
Description

I've noticed something a bit strange between FF2 and Safari. I am not sure if this is a jQuery bug, or a difference in how browsers work.

However, I have the following code to update the document.title portion for the browser.

if (document.title != $("title").text()+" "+owner.username+"-"+ticket.t_id) {
    document.title = $("title").text()+" "+owner.username+"-"+ticket.t_id;
}

In FF when I alert $("title") I get the same "default" title I have in my HTML. However, when using Safari, the $("title") variable changes with each time I update the document.title.

Attachments (0)
Change History (19)

Changed May 01, 2008 06:50AM UTC by jitter comment:1

_comment0: Unfortunately I can't find the link/ticket but I believe I've seen this question before. The result iirc was a general sentiment that there would be too much code necessary to handle this in jquery and it was unnecessary since document.title pretty much works find in all browsers. Thus $("title") wasn't worth the performance and size hits to fix it. \ \ If you feel differently feel free to reopen the ticket with your thoughts. \ 1298036946012060
resolution: → wontfix
status: newclosed

The correct cross-browser way to change the document title is through the document.title property.

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

#7025 is a duplicate of this ticket.

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

#5881 is a duplicate of this ticket.

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

#5005 is a duplicate of this ticket.

Changed February 18, 2011 01:42PM UTC by jitter comment:5

#4548 is a duplicate of this ticket.

Changed February 18, 2011 01:43PM UTC by jitter comment:6

#7339 is a duplicate of this ticket.

Changed February 18, 2011 01:43PM UTC by jitter comment:7

component: coremanipulation
milestone: 1.2.4
priority: minorlow

Changed February 18, 2011 01:44PM UTC by jitter comment:8

#8312 is a duplicate of this ticket.

Changed February 18, 2011 01:46PM UTC by jitter comment:9

#7825 is a duplicate of this ticket.

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

#7250 is a duplicate of this ticket.

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

#6899 is a duplicate of this ticket.

Changed February 18, 2011 01:48PM UTC by jitter comment:12

#5489 is a duplicate of this ticket.

Changed February 24, 2011 06:24PM UTC by ajpiano comment:13

#8375 is a duplicate of this ticket.

Changed July 06, 2011 11:47PM UTC by dmethvin comment:14

#9761 is a duplicate of this ticket.

Changed November 04, 2011 08:15PM UTC by rwaldron comment:15

#10674 is a duplicate of this ticket.

Changed November 08, 2011 01:21AM UTC by timmywil comment:16

#10709 is a duplicate of this ticket.

Changed February 10, 2012 04:31PM UTC by dmethvin comment:17

#11320 is a duplicate of this ticket.

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

#11333 is a duplicate of this ticket.

Changed January 07, 2013 03:58AM UTC by dmethvin comment:19

#13165 is a duplicate of this ticket.