Closed
Bug 181921
Opened 22 years ago
Closed 22 years ago
document.title should be reflected into the title element and vice versa
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 118704
People
(Reporter: cesarb, Assigned: jst)
Details
Attachments
(2 files)
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021123
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021123
http://www.w3.org/TR/2002/PR-DOM-Level-2-HTML-20021108/html.html says for
document.title:
title of type DOMString
The title of a document as specified by the TITLE element in the head of the
document.
I think that means that the content of the title element which is a child of the
head element which is a child of the html element which is the document element
should be reflected as the title attribute of the document, and vice versa.
Nowhere it says it is "the title of a document as _originally_ specified by the
TITLE element".
Reproducible: Always
Steps to Reproduce:
1.Change document.title and look at the content of the <title> element. It's not
changed.
2.Change the content of the <title> element and look at document.title. It's not
changed.
Actual Results:
Changing document.title does not change the content of the <title> element, and
vice versa.
Expected Results:
Reflected any changes in the child nodes of the <title> element in
document.title and reflected any changes in document.title in the child nodes of
the <title> element.
Removing the <title> element should set document.title to the empty string.
Mozilla won't let anyone put two <title> elements in the head (I checked).
Reporter | ||
Comment 1•22 years ago
|
||
Reporter | ||
Comment 2•22 years ago
|
||
Assignee | ||
Comment 3•22 years ago
|
||
*** This bug has been marked as a duplicate of 118704 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Component: DOM: HTML → DOM: Core & HTML
QA Contact: stummala → general
You need to log in
before you can comment on or make changes to this bug.
Description
•