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 16796 - Less-than signs (<) within <script> tags are incorrectly required to be expressed as &lt;
Summary: Less-than signs (<) within <script> tags are incorrectly required to be expre...
Status: RESOLVED INVALID
Alias: None
Product: Validator
Classification: Unclassified
Component: Parser (show other bugs)
Version: HEAD
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-19 04:36 UTC by Tom McDonnell
Modified: 2012-04-19 19:26 UTC (History)
0 users

See Also:


Attachments

Description Tom McDonnell 2012-04-19 04:36:00 UTC
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>
Comment 1 Ville Skyttä 2012-04-19 19:26:28 UTC
(In reply to comment #0)
> When the '<' character is replaced by '&lt;', no errors are reported.

Yes, that's what needs to be done, there's no validator bug here.