David Dorward wrote: > On Thu, Aug 10, 2006 at 03:33:12PM -0700, J. Greenlees wrote: > >> 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. > >>From http://www.w3.org/TR/xhtml1/dtds.html#a_dtd_XHTML-1.0-Strict > > <!ELEMENT img EMPTY> > <!ATTLIST img > %attrs; > src %URI; #REQUIRED > alt %Text; #REQUIRED > longdesc %URI; #IMPLIED > height %Length; #IMPLIED <----------------------- > width %Length; #IMPLIED <----------------------- > usemap %URI; #IMPLIED > ismap (ismap) #IMPLIED > > > > Width and height are definitely there. > Then why does validating it give errors if they are not in a style element? the errors came from the CSS validator, I know that the height and width attributes caused the failure in validation.Received on Thursday, 10 August 2006 22:41:01 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:22 GMT