W3C home > Mailing lists > Public > www-validator-cvs@w3.org > April 2008

[Bug 5661] <noscript> problem

From: <bugzilla@farnsworth.w3.org>
Date: Thu, 24 Apr 2008 22:02:27 +0000
CC:
To: www-validator-cvs@w3.org
Message-Id: <E1Jp9WN-00062K-0g@farnsworth.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5661

           Summary: <noscript> problem
           Product: Validator
           Version: HEAD
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Parser
        AssignedTo: dave.null@w3.org
        ReportedBy: andre4s_y@yahoo.com
         QAContact: www-validator-cvs@w3.org


This following HTML code :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<title>Testing</title>
</head>
<body>
<p>
<script type="text/javascript">
<!--
document.write("Hello World!")
//-->
</script>
<noscript>Your browser does not support JavaScript!</noscript></p>
</body>
</html>

has 2 errors on validator output, using validator with  XHTML 1.1 doctype.
Line 14, Column 10: character data is not allowed here . 
<noscript>Your browser does not support JavaScript!</noscript></p>
and
Line 14, Column 61: end tag for "noscript" which is not finished . 
…ript>Your browser does not support JavaScript!</noscript></p>

I think :
1. the <noscript> has wrapped in a container element, <noscript> has no
attribut, <noscript> is not using XHTML-style self-closing tags. So why the
first error is occured?
2. i have closed the <noscript> tag properly. I also have closed the <p> tag
properly. So why the second error is occured??

Do the code invalid or the validator's bug?
Thank you for giving me more and more reference on this problem.

Andre
Received on Thursday, 24 April 2008 22:02:58 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:02:28 UTC