Closed Bug 42448 Opened 25 years ago Closed 25 years ago

</p> should be optional

Categories

(Core :: DOM: HTML Parser, defect, P3)

defect

Tracking

()

VERIFIED DUPLICATE of bug 42312

People

(Reporter: kazhik, Assigned: rickg)

References

()

Details

Attachments

(2 files)

When a paragraph is not terminated by </p>, the following <h1> elements are ignored. But </p> should be optional. http://sites.netscape.net/kazhik/bugzilla/test/20000613.html This problem occurs on WinNT Build 2000061208. Linux Build 2000060908 works correct.
Linux, build ID 2000061314 M17 shows the same problem. <p>This paragraph is not terminated by &lt;/p&gt;. <h1>Heading (1)</h1> </p> Transitional DTD confirms that </p> is optional, and since <h1> is another block level tag, it should auto-close <p> there and open <h1>. Btw, that </p> is dangling. Confirming, marking all all. This bug is due to the new strictDTD code, changing component to parser.
Status: UNCONFIRMED → NEW
Component: HTML Element → Parser
Ever confirmed: true
OS: Windows NT → All
Hardware: PC → All
Assigning to rickg@netscape.com
Assignee: clayton → rickg
Some further testing reveals this also breaks tables and lists following an unclosed <p>, which would probably explain the majority of the bugs reported against the strict HTML 4 DTD checking.
*** This bug has been marked as a duplicate of 42312 ***
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Verified dupe.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: