Closed Bug 293300 Opened 20 years ago Closed 19 years ago

unclosed <p> inside <form> results in wrong document tree

Categories

(Core :: DOM: HTML Parser, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 22480

People

(Reporter: andrzejk, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050502 Firefox/1.0+ Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050502 Firefox/1.0+ Unclosed <p> placed inside <form> element causes all elements following <form> element to be treated incorrectly as its children, not as siblings. It looks like the parser just ignore the </form> tag in this case. Reproducible: Always Steps to Reproduce: 1. open attached testcase Actual Results: second line of text has invalid color because of incorrect document tree
Attached file testcase
We should not do this in standards mode indeed. (I'm not sure if it makes sense for quirks mode, I guess not.) Doesn't work in a nightly of today either.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Both Opera and Internet Explorer generate the correct DOM tree.
Keywords: testcase
*** This bug has been marked as a duplicate of 22480 ***
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: