NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 398 - Experimental attempt at listing a set of errors that validators can comfortably classify as lower priority to aid transition.
Experimental attempt at listing a set of errors that validators can comfortab...
Status: NEW
Product: Validator.nu
Classification: Unclassified
Component: General
HEAD
All All
: P2 normal
Assigned To: Nobody
http://svn.whatwg.org/webapps/source?...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-01-04 16:49 CET by Henri Sivonen
Modified: 2009-11-23 17:17 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henri Sivonen 2009-01-04 16:49:41 CET
Index: source
===================================================================
--- source	(revision 2475)
+++ source	(revision 2476)
@@ -54292,13 +54292,13 @@
     <span>ASCII case-insensitive</span> match for the string "<code
     title="">HTML</code>", or if the token's public identifier is
     neither missing nor equal to the string
-    "<code>XSLT-compat</code>", or if the token's system identifier
-    is not missing, then there is a <span>parse
-    error</span>. Conformance checkers may, instead of reporting this
-    error, switch to a conformance checking mode for another language
-    (e.g. based on the DOCTYPE token a conformance checker could
-    recognize that the document is an HTML4-era document, and defer to
-    an HTML4 conformance checker.)</p>
+    "<code>XSLT-compat</code>", or if the token's system identifier is
+    not missing, then there is a <span>parse error</span> (this is the
+    <dfn>DOCTYPE parse error</dfn>). Conformance checkers may, instead
+    of reporting this error, switch to a conformance checking mode for
+    another language (e.g. based on the DOCTYPE token a conformance
+    checker could recognize that the document is an HTML4-era
+    document, and defer to an HTML4 conformance checker.)</p>
 
     <p>Append a <code>DocumentType</code> node to the
     <code>Document</code> node, with the <code title="">name</code>
@@ -58484,7 +58484,78 @@
   attribute must return an <code>HTMLCollection</code> rooted at the
   <code>Document</code> node, whose filter matches only
   <code>applet</code> elements.</p>
-  
+
+
+
+  <h3>Conformance checkers</h3>
+
+  <p>To ease the transition from HTML4 Transitional documents to the
+  language defined in <em>this</em> specification, conformance
+  checkers are encouraged to categorise errors that represent usage of
+  old obsolete features that generally have no effect (as defined
+  below) into a separate part of their report, to allow authors to
+  distinguish between likely mistakes and mere vestigial markup.</p>
+
+  <p>The following errors may be categorised as described above:</p>
+
+  <ul>
+
+   <li>
+
+    <p>The <span>DOCTYPE parse error</span>, if the DOCTYPE token's
+    <code title="">name</code> is an <span>ASCII
+    case-insensitive</span> match for the string "<code
+    title="">HTML</code>", and either:</p>
+
+    <ul>
+
+     <li>the token's public identifier is the
+     <span>case-sensitive</span> string "<code
+     title="">-//W3C//DTD&nbsp;HTML&nbsp;4.0//EN</code>" and the
+     token's system identifier is either missing or the
+     <span>case-sensitive</span> string "<code
+     title="">http://www.w3.org/TR/REC-html40/strict.dtd</code>", or</li>
+
+     <li>the token's public identifier is the
+     <span>case-sensitive</span> string "<code
+     title="">-//W3C//DTD&nbsp;HTML&nbsp;4.01//EN</code>" and the
+     token's system identifier is either missing or the
+     <span>case-sensitive</span> string "<code
+     title="">http://www.w3.org/TR/html4/strict.dtd</code>", or</li>
+
+     <li>the token's public identifier is the
+     <span>case-sensitive</span> string "<code
+     title="">-//W3C//DTD&nbsp;XHTML&nbsp;1.0&nbsp;Strict//EN</code>"
+     and the token's system identifier is either missing or the
+     <span>case-sensitive</span> string "<code
+     title="">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</code>",
+     or</li>
+
+     <li>the token's public identifier is the
+     <span>case-sensitive</span> string "<code
+     title="">-//W3C//DTD&nbsp;XHTML&nbsp;1.1//EN</code>"
+     and the token's system identifier is either missing or the
+     <span>case-sensitive</span> string "<code
+     title="">http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd</code>".</li>
+
+    </ul>
+
+    <!-- only things that trigger no-quirks mode and were valid in
+    some other spec are allowed in this list -->
+
+   </li>   
+
+   <li><p>The presence of a <code
+   title="attr-img-border">border</code> attribute on an
+   <code>img</code> element if its value is the string "<code
+   title="">0</code>".</p></li>
+
+   <li><p>The presence of a <code title="attr-script-language"></code>
+   attribute on a <code>script</code> element if its value is an
+   <span>ASCII case-insensitive</span> match for the string "<code
+   title="">JavaScript</code>".</p></li>
+
+  </ul>