Closed
Bug 477654
Opened 15 years ago
Closed 15 years ago
Setting the title attribute of the window XUL element does not change the title in titlebar
Categories
(Toolkit :: UI Widgets, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: georg, Unassigned)
Details
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.19) Gecko/20081204 SeaMonkey/1.1.14 Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.7pre) Setting the title attribute of the window XUL element does not change the title in titlebar. Same with the root element of other window types like dialog or wizzard. The attribute value is changed, but the titlebar is not updated. The string in the titlebar remains what originally was written in the XUL document, but does not update, when the title attribute is modified via JavaScript. Reproducible: Always Steps to Reproduce: document.documentElement.setAttribute('title','Bug'); should set the titlebar of the window to "Bug", but only the attribute value is changed not the title displayed in the titlebar, which remains untouched.
Comment 1•15 years ago
|
||
I believe the correct way to change the title is: document.title = "Bug";
Reporter | ||
Comment 2•15 years ago
|
||
using document.title = "Beetle"; works also in XUL. I assumed this being correct only for HTML. If this is the official way for XUL too, then this is OK for me. Setting bug to INVALID, because trying it the wrong way is my fault.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•