[Bug 2689] documents with no whitespace between attributes validate

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

           Summary: documents with no whitespace between attributes validate
           Product: Validator
           Version: 0.7.1
          Platform: PC
        OS/Version: Windows 98
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Parser
        AssignedTo: link@pobox.com
        ReportedBy: gunnar@cs.tu-berlin.de
         QAContact: www-validator-cvs@w3.org


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>Test</title>
	</head>
	<body id="foo"class="bar"lang="baz">
	</body>
</html>

This passes as “Valid XHTML 1.0 Strict,” but should not IMHO.

    [40] STag ::= '<' Name (S Attribute)* S? '>' [XML10]

requires whitespace between attributes in XML, hence in XHTML.

(I’m not sure if this applies to HTML/SGML as well.)

Gunnar

Reference:
[XML10] http://www.w3.org/TR/REC-xml

Received on Tuesday, 10 January 2006 05:05:45 UTC