[Bug 17597] New: "StartTag: invalid element name" for XHTML 1.0

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

           Summary: "StartTag: invalid element name" for XHTML 1.0
           Product: Validator
           Version: HEAD
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: check
        AssignedTo: dave.null@w3.org
        ReportedBy: rolf@just-in-mind.se
         QAContact: www-validator-cvs@w3.org


For XHTML 1.0 (but not for HTML 4.01):
We get the warning:
"character "<" is the first character of a delimiter but occurred as data"
and the error:
"StartTag: invalid element name"
for the following:
.........
<!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">
<head><title>TEST</title>
<script type="text/javascript">
function test(){
for (i=0; i < length; i++){
} 
}
</script>
</head><body></body>
</html>
.........
However, with "<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"><html>" the code is passed.

Regards,
Rolf Walter

-- 
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 Tuesday, 26 June 2012 11:45:17 UTC