[Bug 16796] New: Less-than signs (<) within <script> tags are incorrectly required to be expressed as &lt;

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16796

           Summary: Less-than signs (<) within <script> tags are
                    incorrectly required to be expressed as &lt;
           Product: Validator
           Version: HEAD
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Parser
        AssignedTo: dave.null@w3.org
        ReportedBy: tomcdonnell@gmail.com
         QAContact: www-validator-cvs@w3.org


When the valid HTML below is submitted to the inline validator at
http://validator.w3.org/check, the following errors are reported.  When the '<'
character is replaced by '&lt;', no errors are reported.

Line 9, Column 22: character "<" is the first character of a delimiter but
Error
Line 9, Column 22: StartTag: invalid element name

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns='http://www.w3.org/1999/xhtml' lang='en' xml:lang='en'>
 <head>
  <title>Bug</title>
  <meta http-equiv='content-type' content='text/html;charset=UTF-8'/><!-- <meta
http-equiv='content-type' content='text/html;charset=ISO-8859-1'/> -->
 </head>
 <body>
  <script type='text/javascript'>
   for (var i = 0; i < 10; ++i) {}
  </script>
 </body>
</html>

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 19 April 2012 04:36:04 UTC