Closed Bug 42532 Opened 24 years ago Closed 24 years ago

Paragraph optional end tag is not optional in strict and transitional DTDs

Categories

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

x86
Windows 98
defect

Tracking

()

VERIFIED DUPLICATE of bug 42312

People

(Reporter: ian, Assigned: rickg)

References

Details

(Keywords: testcase)

Attachments

(3 files)

The three test cases attached are identical except for the DOCTYPE.

They contain content similar to:

   <p> some text
   <div> some more text </div>

...which should be interpreted as:

   <p> some text </p>
   <div> some more text </div>

...since end tags on <p> are optional in the SGML version of HTML4. (i.e., not
in XHTML.)

Currently, it would seem that the strict (and transitional?) DTDs are not taking
the fact that "</p>" is optional into account, and are doing strange things to
the DIV (like not including it or something).
Blocks: html4.01
Keywords: testcase
Fix in hand. Marking dup of 42312.

*** This bug has been marked as a duplicate of 42312 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
verified
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: