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)

defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jason.barnabe, Assigned: bugzilla-mozilla-20000923)

References

Details

(Whiteboard: [cz-0.9.69.1])

Attachments

(1 file)

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);
Severity: normal → trivial
OS: Linux → All
Hardware: PC → All
Version: unspecified → Trunk
I assume this is what you expect it to be changed to?
Assignee: rginda → silver
Status: NEW → ASSIGNED
Attachment #205509 - Flags: review?(samuel)
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+
document.documentElement is DOM Level 1 and has been supported since at least 2001.
Checked in --> FIXED.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
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";
Whiteboard: [cz-0.9.69.1]
Product: Other Applications → Other Applications Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: