This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 1260 - <noscript> tag closes opened <p> blocks.
Summary: <noscript> tag closes opened <p> blocks.
Status: RESOLVED INVALID
Alias: None
Product: Validator
Classification: Unclassified
Component: Parser (show other bugs)
Version: 0.6.7
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Terje Bless
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-19 20:13 UTC by Gilles Reeves
Modified: 2005-04-20 06:22 UTC (History)
0 users

See Also:


Attachments

Description Gilles Reeves 2005-04-19 20:13:35 UTC
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
Comment 1 Bj 2005-04-19 20:53:29 UTC
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 .