diff options
author | ot <ot@localhost> | 2005-03-25 04:39:47 +0000 |
---|---|---|
committer | ot <ot@localhost> | 2005-03-25 04:39:47 +0000 |
commit | bf07809ddde276cf8bcce2c1ca30c70d3964956f (patch) | |
tree | d50a5b27b776d86729c1b712876309a50a78cb0b | |
parent | eaa635573c29ece79e8699baf39be90e9068c11c (diff) | |
download | markup-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.tmpl | 39 |
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> + <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> + <head> + <title>Title</title> + </head> + + <body> + <!-- ... body of document ... --> + </body> + </html> + </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"> |