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

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

From: <bugzilla@jessica.w3.org>
Date: Thu, 19 Apr 2012 04:36:01 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-16796-169@http.www.w3.org/Bugs/Public/>

           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
Line 9, Column 22: StartTag: invalid element name

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

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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:49 UTC