diff options
-rwxr-xr-x | htdocs/docs/help.html | 47 |
1 files changed, 45 insertions, 2 deletions
diff --git a/htdocs/docs/help.html b/htdocs/docs/help.html index 97f74b6..fb2092a 100755 --- a/htdocs/docs/help.html +++ b/htdocs/docs/help.html @@ -1,5 +1,5 @@ -<!--#set var="revision" value="\$Id: help.html,v 1.11 2002-11-07 04:58:34 ot Exp $" ---><!--#set var="date" value="\$Date: 2002-11-07 04:58:34 $" +<!--#set var="revision" value="\$Id: help.html,v 1.12 2002-11-25 01:37:22 ot Exp $" +--><!--#set var="date" value="\$Date: 2002-11-25 01:37:22 $" --><!--#set var="title" value="Help for The W3C MarkUp Validation Service" --><!--#set var="relroot" value="../" --><!--#include virtual="../header.html" --> @@ -51,6 +51,17 @@ <li> <a href="#faq-ampersand">The validator complains about "&" in my URLs!</a> </li> + <li> + <a href="#faq-javascript">The validator complains about something in my Javascript!</a> + </li> + <li> + <a href="#faq-linkandmeta">Why doesn't the validator like my <link ... /> + or <meta ... />?</a> + </li> + <li> + <a href="#faq-typo">I found some nasty typo like <p<a ...> + and the validator accepted it!</a> + </li> </ul> </li> </ul> @@ -192,6 +203,38 @@ of WDG's excellent "<a href="http://www.htmlhelp.com/tools/validator/problems.html">common validation problem</a>" </p> +<h3 id="faq-javascript">The validator complains about something in my Javascript!</h3> +<p>Most probably, you should read the +<a href="http://www.htmlhelp.com/tools/validator/problems.html#script">script section</a> +of WDG's excellent +"<a href="http://www.htmlhelp.com/tools/validator/problems.html">common validation problem</a>" +</p> + +<h3 id="faq-linkandmeta">Why doesn't the validator like my +<link ... /> or <meta ... />?</h3> +<p>HTML is based on <a href="sgml.html">SGML</a> and uses an SGML +feature (called SHORTTAG) (note that this is <strong>not</strong> +the case with XHTML).</p> + +<p>With this feature enabled, the "/" in <link ... /> or <meta ... /> +already closes the link (or meta) tag, and the ">" becomes some regular text, + which is not allowed in the <head> element. Since </head><body> +is optional in HTML (again, <strong>not</strong> in XHTML), it is silently inserted, +thus head-only elements like meta and style as well as +"</head>" and "<body>", which may apear only once, become false. +</p> + +<p>(explanation courtesy of Christoph Päper)</p> + +<h3 id="faq-typo">I found some nasty typo like <p<a ...> +and the validator accepted it!</h3> + +<p>This again (as in the <a href="#faq-linkandmeta">previous case</a>) comes from the +SHORTTAG feature in HTML (<strong>not</strong> in XHTML). The typo is actually a +"shorthand markup" and is a valid construct in HTML, even though its use +<a href="http://www.w3.org/TR/html4/appendix/notes.html#h-B.3.7">is not +recommended</a>.</p> + </div> <!--#include virtual="../footer.html" --> |