W3C home > Mailing lists > Public > www-validator@w3.org > June 2005

Re: height and width in valid icon code (Was: Minor "Problem")

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Fri, 24 Jun 2005 19:22:49 +1000
Message-ID: <42BBD0E9.5090607@lachy.id.au>
To: olivier Thereaux <ot@w3.org>
CC: Chris Ware <chris.ware@mintrasystems.com>, www-validator@w3.org

olivier Thereaux wrote:
> On Jun 24, 2005, at 4:42, Chris Ware wrote:
>> The ironic thing is that including this in an XHTML strict document 
>> will actually invalidate it because there are no such tags as height 
>> and width.
> 
> ... I have no strong feeling about having or removing the said 
> attributes in the valid badge code. Does anyone on the list know if this 
> is good/bad practice to have them?

When they're used as meta data to describe to actual height and width of 
the image, they are content and should be included within the markup 
because they help with incremental rendering.  When they are used to 
alter the size of the image upon rendering, that is presentational and 
should be performed with a stylesheet.  Therefore, these attributes 
should stay as is.

-- 
Lachlan Hunt
http://lachy.id.au/
Received on Friday, 24 June 2005 09:24:30 GMT

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