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 2689 - documents with no whitespace between attributes validate
Summary: documents with no whitespace between attributes validate
Status: RESOLVED FIXED
Alias: None
Product: Validator
Classification: Unclassified
Component: Parser (show other bugs)
Version: 0.7.1
Hardware: PC Windows 98
: P2 normal
Target Milestone: 0.8.0
Assignee: Terje Bless
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-10 05:05 UTC by Gunnar Bittersmann
Modified: 2007-10-02 06:09 UTC (History)
0 users

See Also:


Attachments

Description Gunnar Bittersmann 2006-01-10 05:05:28 UTC
<!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.

(Im not sure if this applies to HTML/SGML as well.)

Gunnar

Reference:
[XML10] http://www.w3.org/TR/REC-xml
Comment 1 Bj 2006-01-10 05:07:55 UTC
The Validator should generate a warning for this and this is a known issue, the 
Validator points out this limitation whenever validating XML documents; also, 
this is likely a duplicate of some other bug...
Comment 2 Olivier Thereaux 2007-10-02 06:09:46 UTC
fixed in 0.8.0 with addition of libxml parsing.
Test case added to suite.