Closed Bug 182626 Opened 22 years ago Closed 22 years ago

createContextualFragment is not parsing <div>'s correct.

Categories

(Core :: DOM: Core & HTML, defect)

Other Branch
PowerPC
Mac System 9.x
defect
Not set
major

Tracking

()

RESOLVED FIXED

People

(Reporter: michael, Assigned: anthonyd)

References

()

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC; en-US; rv:1.2) Gecko/20021126
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC; en-US; rv:1.2) Gecko/20021126

Please look at the test case.

In Moz 1.2b onload will create a red box and the alert will return 
the document.body.lastChild as [object HTHLDivElement]

In 1.2 Final it will NOT, and the alert will return the document.body.lastChild
as [object Text]...

In 1.2 Final, if you add a small text inside the div ie: <div...>hello</div> 
the alert will return [object HTHLDivElement] but will not render the box

This is bad... I use this allot for my dynamic stuff 



Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Attached file Testcase for the bug
*** Bug 182628 has been marked as a duplicate of this bug. ***
This is an instance of bug 182500 and is 1.2-branch only.
Assignee: rogerl → anthonyd
Component: JavaScript Engine → DOM Traversal-Range
Depends on: 182500
QA Contact: pschwartau → nobody
Version: Trunk → Other Branch
I have tested that this bug was an instance of bug 182500 / bug 182253 based on
comparison of two Linux builds compiled with gcc 3.2.  This bug was present in
the 1.2 release and was the only bug fixed in the 1.2.1 release (and the reason
for the 1.2.1 release).

Marking this bug as fixed since it should be fixed in the 1.2.1 release.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Component: DOM: Traversal-Range → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: