Closed Bug 319655 Opened 19 years ago Closed 19 years ago

Firefox code assumes document.firstChild is the root element

Categories

(Firefox :: General, defect)

2.0 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 2 alpha1

People

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

References

Details

(Keywords: fixed1.8.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.
Blocks: 319654
Attached patch patchSplinter Review
Attachment #205504 - Flags: review?(mconnor)
Attachment #205504 - Flags: review?(mconnor) → review+
Gavin, can you check this in?
mozilla/browser/base/content/browser.js; new revision: 1.550;
Status: NEW → RESOLVED
Closed: 19 years ago
OS: Linux → All
Hardware: PC → All
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3
Checked in on the 1.8 branch. mozilla/browser/base/content/browser.js; new revision: 1.479.2.65;
Keywords: fixed1.8.1
Target Milestone: Firefox 3 → Firefox 2 alpha1
Version: Trunk → 2.0 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: