Closed
Bug 319821
Opened 20 years ago
Closed 20 years ago
Chatzilla code assumes document.firstChild is the root element
Categories
(Other Applications Graveyard :: ChatZilla, defect)
Other Applications Graveyard
ChatZilla
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jason.barnabe, Assigned: bugzilla-mozilla-20000923)
References
Details
(Whiteboard: [cz-0.9.69.1])
Attachments
(1 file)
|
966 bytes,
patch
|
samuel
:
review+
|
Details | Diff | Splinter Review |
Bug 319654 is about adding processing instructions in XUL to the DOM tree. When
that happens, any code that thinks document.firstChild is the document element
will break. We need to change it to document.documentElement.
/extensions/irc/js/lib/command-manager.js, line 259 --
document.firstChild.appendChild (parentElem);
| Assignee | ||
Updated•20 years ago
|
Severity: normal → trivial
OS: Linux → All
Hardware: PC → All
Version: unspecified → Trunk
| Assignee | ||
Comment 1•20 years ago
|
||
I assume this is what you expect it to be changed to?
Comment 2•20 years ago
|
||
Comment on attachment 205509 [details] [diff] [review]
document.firstChild --> document.documentElement
has documentElement always existed? we won't break any old versions?
Attachment #205509 -
Flags: review?(samuel) → review+
| Reporter | ||
Comment 3•20 years ago
|
||
document.documentElement is DOM Level 1 and has been supported since at least 2001.
| Assignee | ||
Comment 4•20 years ago
|
||
Checked in --> FIXED.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment 5•20 years ago
|
||
Comment on attachment 205509 [details] [diff] [review]
document.firstChild --> document.documentElement
Nit: if you were going to tweak the parentElem line you could have used parentElem.id = "dynamic-keys";
| Assignee | ||
Updated•19 years ago
|
Whiteboard: [cz-0.9.69.1]
Updated•8 months ago
|
Product: Other Applications → Other Applications Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•