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 HTML code : <p>Any text (1) <script type="text/javascript"> <!-- document.write('<a href="javascript:anyfunction(\'asp\')">Any Text (2)<\/a>') --> </script> <noscript><a href="noscript.html">Any Text (3)</a></noscript> Any text (4) </p> ... doesn't validate correctly. It produces the following error : Line ##, column #: end tag for element "P" which is not open </p> I think this is wrong : if "<script>" elements can occur everywhere, it should be logically the same for "<noscript>". So neither <script> nor <noscript> should break a <p> section (I suppose, although not checked, that the same problem may occur with other block level elements, like <li>). (note that if I put comments around <noscript> $$$ </noscript>, the page validates correctly) Gingko
Thanks for your comment. The Validator only checks for requirements spelled out in various W3C specifications such as http://www.w3.org/TR/html4/ . You seem to disagree with one such requirement, so the Validator is not the right place for this concern. Please check the "Status of this document" section in the corresponding specification, it contains a note where to send comments, I think in this case this would be the publicly archived mailing list www-html@w3.org .