validator icon indicating copy to clipboard operation
validator copied to clipboard

HTML Validator Fails to Detect Missing Closing Tag for <p>

Open xrjunque opened this issue 1 year ago • 0 comments

URL being validated or code to reproduce error:

Description:
I have identified an issue in the W3C HTML Validator where it fails to detect a missing closing tag for the <p> element in the following HTML document. The validator incorrectly marks the code as valid, even though the first <p> tag is not properly closed before the subsequent <div> element.
<!DOCTYPE html>
<html lang="en-US">
<head>
  <title>Validator</title>
</head>
<body>
  <div>
    <p>
    <div></div>
    <p></p>
  </div>
</body>
</html>

xrjunque avatar Jan 22 '25 14:01 xrjunque