Closed Bug 319656 Opened 19 years ago Closed 19 years ago

Toolkit code assumes document.firstChild is the root element

Categories

(Toolkit :: UI Widgets, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: jason.barnabe, Assigned: jason.barnabe)

References

Details

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.
Blocks: 319654
Attached patch patchSplinter Review
(Does this need two reviews?)
Attachment #205505 - Flags: first-review?
Attachment #205505 - Flags: first-review? → first-review?(mconnor)
Attachment #205505 - Flags: first-review?(mconnor) → first-review+
mozilla/toolkit/content/contentAreaUtils.js; new revision: 1.82; mozilla/toolkit/content/charsetOverlay.js; new revision: 1.11;
Status: NEW → RESOLVED
Closed: 19 years ago
OS: Linux → All
Hardware: PC → All
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9alpha1
I've created bug 322520 for xpfe ones of this but what about: /browser/base/content/browser.js, line 3044 -- var wintype = document.firstChild.getAttribute('windowtype'); /browser/base/content/browser.js, line 5257 -- switch (document.firstChild.getAttribute('windowtype')) { ?
(In reply to comment #3) > I've created bug 322520 for xpfe ones of this but what about: > /browser/base/content/browser.js, line 3044 -- var wintype = > document.firstChild.getAttribute('windowtype'); > /browser/base/content/browser.js, line 5257 -- switch > (document.firstChild.getAttribute('windowtype')) { That's bug 319655.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: