diff options
author | link <link@localhost> | 2001-03-06 07:01:48 +0000 |
---|---|---|
committer | link <link@localhost> | 2001-03-06 07:01:48 +0000 |
commit | bd6ae331d4eec71d28e988ff5277ec70269bbbd3 (patch) | |
tree | bd7cf6872c101e90370562225e29f082ceca63cf /htdocs | |
parent | 000d19f1343e117d3904effd7a462e424c033852 (diff) | |
download | markup-validator-bd6ae331d4eec71d28e988ff5277ec70269bbbd3.zip markup-validator-bd6ae331d4eec71d28e988ff5277ec70269bbbd3.tar.gz markup-validator-bd6ae331d4eec71d28e988ff5277ec70269bbbd3.tar.bz2 |
Adding back in links to error explanations in output. These went AWOL when
Scott's old pages were taken down. We now host them locally (thanks Scott!).
Diffstat (limited to 'htdocs')
-rw-r--r-- | htdocs/config/frag.cfg | 22 | ||||
-rwxr-xr-x | htdocs/docs/errors.html | 50 | ||||
-rwxr-xr-x | htdocs/todo.html | 10 |
3 files changed, 46 insertions, 36 deletions
diff --git a/htdocs/config/frag.cfg b/htdocs/config/frag.cfg index e6ee042..5f4e0a1 100644 --- a/htdocs/config/frag.cfg +++ b/htdocs/config/frag.cfg @@ -1,8 +1,10 @@ # # Mapping of error message to URI fragment for the explanations. # -# $Id: frag.cfg,v 1.1 1999-12-01 01:04:06 gerald Exp $ +# $Id: frag.cfg,v 1.2 2001-03-06 07:01:47 link Exp $ +# +# Original SP version. entity end not allowed in comment unterm-comment-1 name start character invalid only s and comment allowed in comment declaration unterm-comment-2 name character invalid only s and comment allowed in comment declaration unterm-comment-2 @@ -22,7 +24,19 @@ end tag for FOO which is not finished omitted-content start tag for FOO omitted but its declaration does not permit this no-start-tag general entity FOO not defined and no default entity bad-entity non SGML character number bad-char -cannot generate system identifier for entity FOO bad-pub-id' +cannot generate system identifier for entity FOO bad-pub-id -#error frag -#character data is not allowed here frag +# +# Horribly verbose versions from lq-nsgmls. +document type does not allow element FOO here not-allowed-contained +there is no attribute FOO for this element in this HTML version attr-undef +an attribute value must be quoted if it contains any character other than letters AZaz digits hyphens and periods use quotes if in doubt attr-quoted +element FOO not allowed here possible cause is an inline element containing a blocklevel element not-allowed +element FOO not allowed here check which elements this element may be contained within not-allowed +missing a required subelement of FOO missing-subel +unknown entity FOO bad-entity +end tag for FOO omitted possible causes include a missing end tag improper nesting of elements or use of an element where it is not allowed no-end-tag +start tag was here start-tag +end tag for element FOO which is not open try removing the end tag or check for improper nesting of elements floating-close +element FOO not defined in this HTML version undef-tag +required attribute FOO not specified attr-missing diff --git a/htdocs/docs/errors.html b/htdocs/docs/errors.html index 85c49aa..1710784 100755 --- a/htdocs/docs/errors.html +++ b/htdocs/docs/errors.html @@ -8,8 +8,8 @@ <link rel="stylesheet" type="text/css" href="/base.css" /> <meta name="keywords" content="HTML, Hypertext Markup Language, Validation, W3C HTML Validation Service" /> <meta name="description" content="W3C's easy-to-use HTML validation service, based on an SGML parser." /> - <meta name="revision" content="$Id: errors.html,v 1.1 2001-02-23 09:06:49 link Exp $" /> - <meta name="modified" content="$Date: 2001-02-23 09:06:49 $" /> + <meta name="revision" content="$Id: errors.html,v 1.2 2001-03-06 07:01:47 link Exp $" /> + <meta name="modified" content="$Date: 2001-03-06 07:01:47 $" /> </head> <body bgcolor="#FFFFFF" text="#000000" link="#0000ee" vlink="#551a8b"> @@ -210,23 +210,7 @@ corresponding end tag is also missing</a>. </p> </dd> - <dt id="not-allowed-contained">"document type does not allow element "FOO" here; assuming missing "BAR" start-tag"</dt> - <dd> - <p> - Similar to the <a href="#not-allowed">previous error</a>, but more - specific: in this case, you have a FOO element that is not contained - in a BAR element when FOO is not allowed outside of BAR. Probably the - most common cause of this error is the use of the <code>DD</code> - element as a fake paragraph indent; <code>DD</code> is not allowed - outside of a <code>DL</code> element. - </p> - <p> - The Validator has inserted a BAR start tag where it thinks there needs - to be one; it will probably complain later on that <a - href="#no-end-tag">the corresponding end tag is also missing</a>. - </p> - </dd> - <dt id="undef-attr">"there is no attribute `FOO'"</dt> + <dt id="attr-undef">"there is no attribute `FOO' for this element (in this HTML version)"</dt> <dd> <p> You have used an attribute with an element that is defined not to have @@ -238,7 +222,7 @@ <dt id="undef-attr-val">"`FOO' is not a member of the group specified in the declared value of this attribute"</dt> <dd> <p> - Similar to the <a href="#undef-attr">previous error</a>; this time, + Similar to the <a href="#attr-undef">previous error</a>; this time, you're using an attribute that is defined for the element, but with a value that isn't defined for the attribute. For instance, the Netscape extension <code><IMG ALIGN=ABSMIDDLE></code> will cause this @@ -278,7 +262,7 @@ which means that <code><TD WIDTH="50%"></code> is not allowed. </p> </dd> - <dt id="bad-name-attr">"value of attribute "FOO" invalid: "#" cannot start a name"</dt> + <dt id="attr-bad-name">"value of attribute "FOO" invalid: "#" cannot start a name"</dt> <dd> <p> A special case of <a href="#bad-attr-char">the previous error</a>; the @@ -309,14 +293,15 @@ error, referring to the "attribute value" <code>JOE.GIF</code>. </p> </dd> - <dt id="missing-attr">"required attribute `FOO' not specified"</dt> + <dt id="attr-missing">"required attribute `FOO' not specified"</dt> <dd> <p> You left off a required attribute of the indicated element. The most common such omitted attribute is the <code>ALT</code> attribute of the - <code>AREA</code> element; browsers will typically use these to build - a menu equivalent to your client-side imagemap if the user has - disabled image loading, so you'll want to use a meaningful value here. + <code>AREA</code> or <code>IMG</code> element; browsers will typically + use these to build a menu equivalent to your client-side imagemap if + the user has disabled image loading, so you'll want to use a + meaningful value here. </p> </dd> <dt id="no-end-tag">"end tag for `FOO' omitted, but its declaration does not permit this"</dt> @@ -544,6 +529,21 @@ work from, and thus could not validate your document. </p> </dd> + <dt id="missing-subel">"missing a required sub-element of `FOO'"</dt> + <dd> + <p> + The element "FOO" is defined to <em>require</em> one or more + sub-elements. One example is TR which requires one or more TD or TH + elements. + </p> + </dd> + <dt id="start-tag">"start tag was here"</dt> + <dd> + <p> + Not an error, but rather a pointer to the start tag of the element + the previous error referred to. + </p> + </dd> </dl> </body> </html> diff --git a/htdocs/todo.html b/htdocs/todo.html index 83f56a4..2d79f82 100755 --- a/htdocs/todo.html +++ b/htdocs/todo.html @@ -8,7 +8,7 @@ W3C HTML Validation Service, To Do List"> <meta name="description" content="To Do List for W3C's Validation Service."> <meta name="revision" - content="$Id: todo.html,v 1.26 2001-01-05 00:42:40 gerald Exp $"> + content="$Id: todo.html,v 1.27 2001-03-06 07:01:47 link Exp $"> </head> <body bgcolor="#FFFFFF" text="#000000" link="#0000ee" vlink="#551a8b"> @@ -40,10 +40,6 @@ </p> <ol> - - <li> put error explanations online, re-link them from validator - output - <li> apply <a href="http://lists.w3.org/Archives/Public/www-validator/2000JulSep/0146.html">Takuya's XML encoding patch</a>; merge in <a @@ -61,7 +57,7 @@ <li> add a doctype-overriding option (use <a href="http://lists.w3.org/Archives/Public/www-validator/2000OctDec/0037.html">Terje's - patch</a> + patch</a>). <li> add a textarea for testing short HTML fragments @@ -196,7 +192,7 @@ src="http://validator.w3.org/images/vh40" height=31 width=88 align=right border=0 alt="Valid W3C HTML 4.0!"></a> <a href="/feedback.html">Gerald Oskoboiny</A><br> - $Date: 2001-01-05 00:42:40 $ + $Date: 2001-03-06 07:01:47 $ </address> </body> |