summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorot <ot@localhost>2005-03-25 04:39:47 +0000
committerot <ot@localhost>2005-03-25 04:39:47 +0000
commitbf07809ddde276cf8bcce2c1ca30c70d3964956f (patch)
treed50a5b27b776d86729c1b712876309a50a78cb0b
parenteaa635573c29ece79e8699baf39be90e9068c11c (diff)
downloadmarkup-validator-bf07809ddde276cf8bcce2c1ca30c70d3964956f.zip
markup-validator-bf07809ddde276cf8bcce2c1ca30c70d3964956f.tar.gz
markup-validator-bf07809ddde276cf8bcce2c1ca30c70d3964956f.tar.bz2
Making clearer distinction between W09 and W16
- W09 is "no doctype found", using default - W16 is "no doctype found", and there was * a choice of doctype given * fbd (fallback checkbox) set
-rw-r--r--share/templates/en_US/warnings.tmpl39
1 files changed, 38 insertions, 1 deletions
diff --git a/share/templates/en_US/warnings.tmpl b/share/templates/en_US/warnings.tmpl
index 2245988..699bb12 100644
--- a/share/templates/en_US/warnings.tmpl
+++ b/share/templates/en_US/warnings.tmpl
@@ -159,7 +159,7 @@
</dd>
</TMPL_IF>
<TMPL_IF NAME="W09">
- <dt id="W09"><code>DOCTYPE</code> Fallback in effect!</dt>
+ <dt id="W09">No <code>DOCTYPE</code> found! Attempting validation with <TMPL_VAR NAME="W09_dtd" ESCAPE="HTML">.</dt>
<dd>
<p>
The DOCTYPE Declaration was not recognized or is missing. This
@@ -170,6 +170,43 @@
document will not be Valid until you have corrected the problem with the
DOCTYPE Declaration.
</p>
+ <TMPL_IF NAME="opt_verbose">
+ <p>
+ You should place a DOCTYPE declaration as the very first thing in your
+ HTML document. For example, for a typical <a
+ href="http://www.w3.org/TR/xhtml1/">XHTML 1.0</a> document:
+ </p>
+ <pre>
+ &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
+ &lt;html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"&gt;
+ &lt;head&gt;
+ &lt;title&gt;Title&lt;/title&gt;
+ &lt;/head&gt;
+
+ &lt;body&gt;
+ &lt;!-- ... body of document ... --&gt;
+ &lt;/body&gt;
+ &lt;/html&gt;
+ </pre>
+ <p>
+ For XML documents, you may also wish to include an "XML Declaration"
+ even before the DOCTYPE Declaration, but this is not well supported
+ in older browsers. More information about this can be found in the
+ <a href="http://www.w3.org/TR/xhtml1/">XHTML 1.0</a> Recommendation.
+ </p>
+ <p>
+ The W3C QA Activity maintains a <a
+ href="http://www.w3.org/QA/2002/04/valid-dtd-list.html">List of
+ Valid Doctypes</a> that you can choose from, and the <acronym
+ title="Web Design Group">WDG</acronym> maintains a document on
+ "<a href="http://htmlhelp.com/tools/validator/doctype.html">Choosing
+ a DOCTYPE</a>".
+ </p>
+ <TMPL_ELSE>
+ <p>So what should I do? <a href="docs/help.html#faq-doctype">Tell me more...</a></p>
+ </TMPL_IF>
+
</dd>
</TMPL_IF>
<TMPL_IF NAME="W10">