Short URL: http://html5.org/r/2476
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 2476 | 2008-11-29 22:28 |
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,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>