- From: <bugzilla@wiggum.w3.org>
- Date: Tue, 19 Apr 2005 20:13:36 +0000
- To: www-validator-cvs@w3.org
- Cc:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=1260
Summary: <noscript> tag closes opened <p> blocks.
Product: Validator
Version: 0.6.7
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Parser
AssignedTo: link@pobox.com
ReportedBy: nospam@nospam.homelinux.org
QAContact: www-validator-cvs@w3.org
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
Received on Tuesday, 19 April 2005 20:13:36 UTC