[html5] r2476 - [c] (0) Experimental attempt at listing a set of errors that validators can comf [...]
whatwg at whatwg.org
whatwg at whatwg.org
Sat Nov 29 14:28:03 PST 2008
Author: ianh
Date: 2008-11-29 14:28:03 -0800 (Sat, 29 Nov 2008)
New Revision: 2476
Modified:
index
source
Log:
[c] (0) Experimental attempt at listing a set of errors that validators can comfortably classify as lower priority to aid transition.
Modified: index
===================================================================
--- index 2008-11-29 21:59:29 UTC (rev 2475)
+++ index 2008-11-29 22:28:03 UTC (rev 2476)
@@ -975,7 +975,8 @@
<li><a href=#obsolete-elements><span class=secno>10.1 </span>Obsolete elements</a>
<ol>
<li><a href=#the-body-element-0><span class=secno>10.1.1 </span>The <code>body</code> element</a></li>
- <li><a href=#the-applet-element><span class=secno>10.1.2 </span>The <code>applet</code> element</a></ol></ol></li>
+ <li><a href=#the-applet-element><span class=secno>10.1.2 </span>The <code>applet</code> element</a></ol></li>
+ <li><a href=#conformance-checkers-0><span class=secno>10.2 </span>Conformance checkers</a></ol></li>
<li><a href=#no><span class=secno>11 </span>Things that you can't do with this specification because
they are better handled using other technologies that are further
described herein</a>
@@ -47594,13 +47595,13 @@
<p>If the DOCTYPE token's <code title="">name</code> is not an
<a href=#ascii-case-insensitive>ASCII case-insensitive</a> 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 <a href=#parse-error>parse
- error</a>. 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 <a href=#parse-error>parse error</a> (this is the
+ <dfn id=doctype-parse-error>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>
@@ -53582,13 +53583,58 @@
attribute must return an <code><a href=#htmlcollection-0>HTMLCollection</a></code> rooted at the
<code>Document</code> node, whose filter matches only
<code><a href=#the-applet-element>applet</a></code> elements.</p>
-
+ <h3 id=conformance-checkers-0><span class=secno>10.2 </span>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>
- <h2 id=no><span class=secno>11 </span>Things that you can't do with this specification because
+ <p>The following errors may be categorised as described above:</p>
+
+ <ul><li>
+
+ <p>The <a href=#doctype-parse-error>DOCTYPE parse error</a>, if the DOCTYPE token's
+ <code title="">name</code> is an <a href=#ascii-case-insensitive>ASCII
+ case-insensitive</a> match for the string "<code title="">HTML</code>", and either:</p>
+
+ <ul><li>the token's public identifier is the
+ <a href=#case-sensitive>case-sensitive</a> string "<code title="">-//W3C//DTD HTML 4.0//EN</code>" and the
+ token's system identifier is either missing or the
+ <a href=#case-sensitive>case-sensitive</a> string "<code title="">http://www.w3.org/TR/REC-html40/strict.dtd</code>", or</li>
+
+ <li>the token's public identifier is the
+ <a href=#case-sensitive>case-sensitive</a> string "<code title="">-//W3C//DTD HTML 4.01//EN</code>" and the
+ token's system identifier is either missing or the
+ <a href=#case-sensitive>case-sensitive</a> string "<code title="">http://www.w3.org/TR/html4/strict.dtd</code>", or</li>
+
+ <li>the token's public identifier is the
+ <a href=#case-sensitive>case-sensitive</a> string "<code title="">-//W3C//DTD XHTML 1.0 Strict//EN</code>"
+ and the token's system identifier is either missing or the
+ <a href=#case-sensitive>case-sensitive</a> string "<code title="">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</code>",
+ or</li>
+
+ <li>the token's public identifier is the
+ <a href=#case-sensitive>case-sensitive</a> string "<code title="">-//W3C//DTD XHTML 1.1//EN</code>"
+ and the token's system identifier is either missing or the
+ <a href=#case-sensitive>case-sensitive</a> 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><a href=#the-img-element>img</a></code> element if its value is the string "<code title="">0</code>".</li>
+
+ <li><p>The presence of a <code title=attr-script-language></code>
+ attribute on a <code><a href=#script>script</a></code> element if its value is an
+ <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the string "<code title="">JavaScript</code>".</li>
+
+ </ul><h2 id=no><span class=secno>11 </span>Things that you can't do with this specification because
they are better handled using other technologies that are further
described herein</h2>
Modified: source
===================================================================
--- source 2008-11-29 21:59:29 UTC (rev 2475)
+++ source 2008-11-29 22:28:03 UTC (rev 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,12 +58484,83 @@
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 HTML 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 HTML 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 XHTML 1.0 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 XHTML 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>
+
+
+
+
+
<h2 id="no">Things that you can't do with this specification because
they are better handled using other technologies that are further
described herein</h2>
More information about the Commit-Watchers
mailing list