validator/htdocs/dev/tests sgml-nodoctype-syntaxnotok.html,NONE,1.1 sgml-nodoctype-syntaxok.html,NONE,1.1 xml-nodoctype-notwf.xml,NONE,1.1 xml-nodoctype-wf.xml,NONE,1.1 index.html,1.78,1.79

Update of /sources/public/validator/htdocs/dev/tests
In directory hutz:/tmp/cvs-serv8219

Modified Files:
	index.html 
Added Files:
	sgml-nodoctype-syntaxnotok.html sgml-nodoctype-syntaxok.html 
	xml-nodoctype-notwf.xml xml-nodoctype-wf.xml 
Log Message:
adding a number of test cases for documents without doctype. sgml or xml, well-formed or not

--- NEW FILE: sgml-nodoctype-syntaxok.html ---
<foo>
--- NEW FILE: xml-nodoctype-notwf.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<foo bar=quz />
<zog>&& &a<zo/G>
--- NEW FILE: sgml-nodoctype-syntaxnotok.html ---
<foo>
<a href="12" trget=2>hello</>>& &&a>
Index: index.html
===================================================================
RCS file: /sources/public/validator/htdocs/dev/tests/index.html,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -d -r1.78 -r1.79
--- index.html	31 May 2007 02:32:14 -0000	1.78
+++ index.html	26 Jun 2007 09:03:09 -0000	1.79
@@ -21,6 +21,7 @@
     <li><a href="#invalid">Invalid documents</a>
         <ul>
                 <li><a href="#invalid_misc">Miscellaneous invalid docs</a></li>
+                <li><a href="#invalid_nodoctype">Missing Doctype</a></li>
                 <li><a href="#nonconform">DTD-Valid but not conformant</a></li>
                 <li><a href="#invalid_bug">Documents that are invalid, which the validator passes as OK</a></li>
         </ul>  
@@ -299,12 +300,6 @@
 <h3 id="invalid">Invalid Documents</h3>
 <h4 id="invalid_misc">Miscellaneous invalid docs</h4>
   <ul>
-    <li>
-      <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-missing-doctype-and-xmlns.html;ss">validate</a> -
-      <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-missing-doctype-and-xmlns.html;ss">with v.w.o</a> -
-      <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-missing-doctype-and-xmlns.html">view</a>:
-      XHTML, no DOCTYPE, no xmlns (thus invalid)
-    </li>
     <li><a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-bogus-element.html;ss">validate</a> -
       <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-bogus-element.html;ss">with v.w.o</a> -
       <a href="xhtml1-bogus-element.html">view</a>:
@@ -372,6 +367,7 @@
       <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/errors_sorting.smi">view</a>:
       SMIL 2.0 with bogus xmlns, xml ill-formedness and bogus elements (used to test sorting of errors)
     </li>
+
   </ul>
   
   <h5>Various often-invalid site</h5>
@@ -383,7 +379,33 @@
   	<li><a href="../../check?uri=http://www.netscape.com/">Netscape</a></li>
           <li><a href="../../check?uri=http://www.w3.org/TR/1998/REC-xml-19980210.xml">XML 1.0</a></li>
         </ul>
-  
+<h4 id="invalid_nodoctype">Missing Doctype</h4>
+<ul>
+  <li>
+    <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-missing-doctype-and-xmlns.html;ss">validate</a> -
+    <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-missing-doctype-and-xmlns.html;ss">with v.w.o</a> -
+    <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-missing-doctype-and-xmlns.html">view</a>:
+    XHTML, no DOCTYPE, no xmlns (thus invalid)
+  </li>
+  <li>
+    <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xml-nodoctype-notwf.xml;ss">validate</a> -
+    <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xml-nodoctype-notwf.xml;ss">with v.w.o</a> -
+    <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xml-nodoctype-notwf.xml">view</a>:
+    XML, no DOCTYPE, not well-formed (marked as invalid - FIXME)
+  </li>
+  <li>
+    <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/sgml-nodoctype-syntaxok.html;ss">validate</a> -
+    <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/sgml-nodoctype-syntaxok.html;ss">with v.w.o</a> -
+    <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/sgml-nodoctype-syntaxok.html">view</a>:
+    SGML-ish document without html root. Served as text/html. No DOCTYPE. Correct SGML syntax. Would pass as well-formed XML if it were XML...
+  </li>
+  <li>
+    <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/sgml-nodoctype-syntaxnotok.html;ss">validate</a> -
+    <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/sgml-nodoctype-syntaxnotok.html;ss">with v.w.o</a> -
+    <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/sgml-nodoctype-syntaxnotok.html">view</a>:
+    SGML-ish document without html root. Served as text/html. No DOCTYPE. Bogus SGML syntax. 
+  </li>
+</ul>
 <h4 id="nonconform">DTD-Valid but not conformant</h4>
 <p>For those, we will need to change the message, or hordes of SGML zombies will come down upon us ;)...</p>
 <ul>
@@ -407,22 +429,30 @@
   <h3 id="well-formed">Docs that should be Well Formed</h3>
 <p>well formed but no doctype. The validator could mark them as well formed, but not mention validity?</p>
       <ul>
+        <li>
+          <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xml-nodoctype-wf.xml">validate</a> - 
+          <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xml-nodoctype-wf.xml">with v.w.o</a> - 
+          <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xml-nodoctype-wf.xml">view</a>:
+          Basic XML document, well formed. No doctype. Currently checked only for xmlwf. Passes.
+        </li>
+        
             <li><a href="../../check?uri=http://impressive.net/people/gerald/2000/10/18/test-staroffice-doc.xml;ss">validate</a> - 
               <a href="http://validator.w3.org/check?uri=http://impressive.net/people/gerald/2000/10/18/test-staroffice-doc.xml;ss">with v.w.o</a> - 
                <a href="http://impressive.net/people/gerald/2000/10/18/test-staroffice-doc.xml">View</a>:
               XML output from OpenOffice 5.2
-              ("Build/Tag number OpenOffice605"), many namespaces
+              ("Build/Tag number OpenOffice605"), many namespaces. Currently checked only for xmlwf. Passes.
             </li>
 
             <li><a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/4476-svg_nodoctype.svg;ss">validate</a> - 
               <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/4476-svg_nodoctype.svg;ss">with v.w.o</a> - 
                <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/4476-svg_nodoctype.svg">View</a>:
-              Very minimal SVG document, no document type.
+              Very minimal SVG document, no document type. Currently checked only for xmlwf. Passes.
             </li>
+            
             <li><a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-missing-doctype-and-xmlns.xhtml;ss">validate</a> - 
               <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-missing-doctype-and-xmlns.xhtml;ss">with v.w.o</a> - 
                <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-missing-doctype-and-xmlns.xhtml">View</a>:
-              XHTML document without doctype, served as XML.
+              XHTML document without doctype, served as XML. Fallback to XHTML 1.0, and invalid.
             </li>
       </ul>
 

--- NEW FILE: xml-nodoctype-wf.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<foo />

Received on Tuesday, 26 June 2007 09:03:19 UTC