- From: J. Greenlees <jaqui@jaqui-greenlees.net>
- Date: Thu, 10 Aug 2006 15:33:12 -0700
- To: David Dorward <david@dorward.me.uk>
- CC: www-validator@w3.org
David Dorward wrote: > On Thu, Aug 10, 2006 at 02:18:20AM -0700, J. Greenlees wrote: >> Non Valid code in xml docuents with css: >> >> <p> >> <a href="http://validator.w3.org/check?uri=referer"><img >> src="http://www.w3.org/Icons/valid-xhtml10" >> alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a> >> </p> > > If I understand your argument correctly: > > The validity of some markup is dependent on the DTD specified in the > Doctype, not the use (or otherwise) or a stylesheet. > > The height and width attributes exist for all published versions of > XHTML, including Strict variants. Arguably, they belong there as they > describe the image rather then define its presentation (at least so > long as you use them to specify the actual pixel dimensions of the > image). > Except that when validating against the XHTML Strict DTD the image width and height attributes cause a failed validation, since they are [i]not[/i] included in the DTD attribute list for images. by putting them into a style statement the error goes away.
Received on Thursday, 10 August 2006 22:32:52 UTC