Browse files

[c] (0) Experimental attempt at listing a set of errors that validato…

…rs can comfortably classify as lower priority to aid transition.

git-svn-id: http://svn.whatwg.org/webapps@2476 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
1 parent 88830e9 commit d7b19f55f1218338d2a20b8f3805eb21ab1efdca @Hixie Hixie committed Nov 29, 2008
Showing with 135 additions and 18 deletions.
  1. +56 −10 index
  2. +79 −8 source
View
66 index
@@ -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 @@ interface <dfn id=messagechannel>MessageChannel</dfn> {
<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 @@ xh|section xh|section xh|section xh|section xh|section xh|h1 { /* same styles as
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>
+
+ <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&nbsp;HTML&nbsp;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&nbsp;HTML&nbsp;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&nbsp;XHTML&nbsp;1.0&nbsp;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&nbsp;XHTML&nbsp;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>
- <h2 id=no><span class=secno>11 </span>Things that you can't do with this specification because
+ </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>
View
87 source
@@ -54292,13 +54292,13 @@ interface <dfn>MessageChannel</dfn> {
<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 @@ xh|section xh|section xh|section xh|section xh|section xh|h1 { /* same styles as
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>

0 comments on commit d7b19f5

Please sign in to comment.