Re: Valid Site html section non validating in xhtml..

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.

-- 
David Dorward                                      http://dorward.me.uk

Received on Thursday, 10 August 2006 22:35:26 UTC