Closed Bug 2455 Opened 26 years ago Closed

Optional end tags not optional

Categories

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

Other
Other
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: ian, Assigned: rickg)

References

()

Details

In the document quoted above, test 2 is failed by NGLayout. The parser should imply a </P> if it comes across an element that is not allowed in the context of a paragraph. (If the parser is a proper SGML parser, then that should be automatic based on the DTD. The uri quoted *does* give a DOCTYPE, so the parser can infer the correct rules directly from the DTD given.) Note - </LI> is optional too, as is </DT>, </DD>, </HEAD>, </BODY>, </HTML>...
Status: NEW → ASSIGNED
Fixed by improvements to new DTD system; also fixed one in comment parsing.
Status: RESOLVED → VERIFIED
Verified fixed.
You need to log in before you can comment on or make changes to this bug.