W3C home > Mailing lists > Public > www-validator@w3.org > July 2006

Re: Error Message Feedback

From: David Dorward <david@dorward.me.uk>
Date: Mon, 31 Jul 2006 16:17:01 +0100
To: Saad Salman <saadsalman@saadsalman.com>
Cc: www-validator@w3.org
Message-ID: <20060731151701.GB29148@us-lot.org>

On Mon, Jul 31, 2006 at 07:15:32PM +0500, Saad Salman wrote:
>    The height attribute has been disabled in XHTML but why are you writing it
>    in the code you provide for the validator link?:

The height attribute for td, th and applet elements was deprecated in
HTML 4. It was not deprecated for img elements.

XHTML 1.0 makes no changes to HTML 4.01 except those required by the
XML specification (which, when it comes to elements and attributes,
basically means that xmlns has been added).

Additionally, there is a strong argument that the height and width
attributes for images describe the image rather then how it should be
presented (at least if they are set to the native dimensions of the
image) and thus should be part of HTML, not a stylesheet.

>    I use style="height:31" as a replacement to height attribute.

This is invalid CSS. Non-zero lengths require units.

(I read the mailing list, please direct responses there and do not CC
me. Thanks).

-- 
David Dorward                                      http://dorward.me.uk
Received on Monday, 31 July 2006 15:17:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:22 GMT