W3C home > Mailing lists > Public > www-validator@w3.org > March 2001

RE: Bug in W3C HTML validator

From: Brian Gilkison <gilkison@one.net>
Date: Mon, 19 Mar 2001 08:19:51 -0500
To: <www-validator@w3.org>
On Monday, March 18, 2001 at 7:46, Christian Smith [csmith@barebones.com]
> However, neither of the validators caught these error:
> > File "untitled 2"; Line 51:  Value of attribute ³width² for element
> > ³<td>² must be a number.
> (caused by a space prepending the value, is this really an error?)

Not according to http://www.w3.org/TR/html4/types.html#type-cdata: "User
agents may ignore leading and trailing white space in CDATA attribute values
(e.g., "   myval   " may be interpreted as "myval"). Authors should not
declare attribute values with leading or trailing white space."  There's a
'may' and a 'should' in there, so spacing seems to be not explicitly

> > File "untitled 2"; Line 102:  Value of attribute ³bgcolor² for element
> > ³<td>² is invalid; Value isn't hex color spec or predefined color.
> (caused by missing #)

I don't think this is necessarily invalid, but rather a limitation of the
HTML spec itself?  The 'Color' entity in the DTD is defined as CDATA, and I
don't think it could be required to include the "#" the way the spec is
currently defined (http://www.w3.org/TR/html4/sgml/loosedtd.html#Color)

How, pray tell, did you come up with these errors?  (I have no ideas about
your first error, RE: META content)
Received on Monday, 19 March 2001 08:21:08 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:20 UTC