Closed
Bug 42448
Opened 25 years ago
Closed 25 years ago
</p> should be optional
Categories
(Core :: DOM: HTML Parser, defect, P3)
Core
DOM: HTML Parser
Tracking
()
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.
Comment 1•25 years ago
|
||
Linux, build ID 2000061314 M17 shows the same problem.
<p>This paragraph is not terminated by </p>.
<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
Comment 3•25 years ago
|
||
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.
Comment 4•25 years ago
|
||
Comment 5•25 years ago
|
||
Comment 6•25 years ago
|
||
*** This bug has been marked as a duplicate of 42312 ***
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•