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

HTML-Validator - Non-valid Code passes the check

From: Jens Schwartz <jensschwartz@yahoo.de>
Date: Fri, 14 Mar 2008 16:45:57 +0100 (CET)
To: www-validator@w3.org
Message-ID: <564927.19382.qm@web25810.mail.ukl.yahoo.com>

Hi specialists,

in a document[1] described as

as well as 
	<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"

the W3C HTML validator[2] accepts the following lines as valid for
strict HTML 4:

		<img alt=" " src="http://www.heise.de/icons/ho/heise.gif"
height="14px" width="32px">

the W3C HTML 4 document type definition says in[3]

	height      %Length;       #IMPLIED  -- override height --


	Length defined in strict DTD for cellpadding/cellspacing
	ENTITY % Length "CDATA" -- nn for pixels or nn% for percentage length

IMHO, following this definition the height and width attributes don't
contain correct values because of the "px" notation.
Am I right with this, or have I understood something wrong?

another validator[4] recognizes the code above as non-valid.

Best Regards
Jens Schwartz

[1] the checked file was uploaded directly and is not available on the
net atm
[2] http://validator.w3.org/
[3] http://www.w3.org/TR/html401/sgml/dtd.html
[4] http://validator.de.selfhtml.org/

      E-Mails jetzt auf Ihrem Handy.
Received on Friday, 14 March 2008 15:46:37 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:55 UTC