NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 1024 - Missing close p tag not detected
Missing close p tag not detected
Status: RESOLVED INTENTIONAL
Product: Validator.nu
Classification: Unclassified
Component: HTML parser
HEAD
All All
: P2 enhancement
Assigned To: Nobody
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-03-12 11:29 CET by calimeroteknik
Modified: 2015-03-31 03:01 CEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description calimeroteknik 2015-03-12 11:29:41 CET
Omitting to close a <p> tag seems to be fine to the validator.

This is considered valid (it's the default example, with </p> removed):

<!DOCTYPE html>
<html>
<head>
<title>Test</title>
</head>
<body>
<p>
</body>
</html>

xmllint of course rejects that.
Comment 1 calimeroteknik 2015-03-13 15:38:31 CET
I discovered that this was tolerated by the HTML5 spec!
Adding a warning couldn't hurt, though.
Comment 2 Michael[tm] Smith 2015-03-31 03:01:01 CEST
resolving; see comment 1