This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The following construct is checked incorrectly in HTML 4.01-Strict mode and others. Test URL: http://mova.org/~cheusov/pub/pkgsrc-distbb/Linux/current/logs/20090517.1016/META/test.html Full html code: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" > </head> <body> <p> <pre> Hello world </pre> </p> </body> </html>
This is not a bug, but a real error in your markup. <p> may contain only inline elements in HTML 4.01, and because <pre> is not an inline element, your <p> is implicitly closed before it, like: <p> </p> <!-- paragraph ends here because of the following <pre> --> <pre> ... </pre> </p> <!-- end tag for p which is not open, like the validator says -->