[Bug] XHTML Strict Minimal document

Gerald,

I just began the work organization for an XHTML Test Suite, so I'm 
trying things in the validator.

In http://www.w3.org/TR/xhtml1/#docconf

3.1.1 Strictly Conforming Documents
A Strictly Conforming XHTML Document is a document that requires only 
the facilities described as mandatory in this specification. Such a 
document must meet all of the following criteria:

1. It must validate against one of the three DTDs found in Appendix A.
2. The root element of the document must be <html>.
3. The root element of the document must designate the XHTML 
namespace using the xmlns attribute [XMLNAMES]. [...cut...]
4. There must be a DOCTYPE declaration in the document prior to the 
root element.  [...cut...]

So we could have a very minimal document as

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

</html>

but this doesn't work. It doesn't work

if you add.
<!DOCTYPE html
      PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<body></body>
</html>


But this one is OK

<!DOCTYPE html
      PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title></title></head>
<body></body>
</html>
-- 
Karl Dubost / W3C - Conformance Manager
           http://www.w3.org/

      --- Be Strict To Be Cool! ---

Received on Tuesday, 24 October 2000 08:20:07 UTC