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

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

From: David Dorward <david@dorward.me.uk>
Date: Thu, 10 Aug 2006 23:35:17 +0100
To: "J. Greenlees" <jaqui@jaqui-greenlees.net>
Cc: www-validator@w3.org
Message-ID: <20060810223517.GC8565@us-lot.org>

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 GMT

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