W3C home > Mailing lists > Public > www-validator@w3.org > February 1999

Bug with TD width?

From: Morten Wang <warnckew@online.no>
Date: 05 Feb 1999 12:50:57 +0100
To: www-validator@w3.org
Message-ID: <m3emo59ihq.fsf@tigger.plaindog.no>

and pardon me for suddenly bursting in here.

I validated the page http://home.sol.no/~skirnis/ a few minutes ago,
and noticed that even though the page uses percentage values in the
table cell widths there are no errors.

I read through the HTML 4.0 spec and noticed it said that TD only
takes pixel values for width.  the same goes for the DTD that comes
with the spec (the HTML version that is).  I also downloaded the DTD
found on http://www.w3.org/TR/REC-html40/loose.dtd (which is also used
in the DOCTYPE in the document) and it clearly states pixel widths:

<!ATTLIST (TH|TD)                      -- header or data cell --
  %attrs;                              -- %coreattrs, %i18n, %events --
  abbr        %Text;         #IMPLIED  -- abbreviation for header cell --
  axis        CDATA          #IMPLIED  -- names groups of related headers--
  headers     IDREFS         #IMPLIED  -- list of id's for header cells --
  scope       %Scope;        #IMPLIED  -- scope covered by header cells --
  rowspan     NUMBER         1         -- number of rows spanned by cell --
  colspan     NUMBER         1         -- number of cols spanned by cell --
  %cellhalign;                         -- horizontal alignment in cells --
  %cellvalign;                         -- vertical alignment in cells --
  nowrap      (nowrap)       #IMPLIED  -- suppress word wrap --
  bgcolor     %Color;        #IMPLIED  -- cell background color --
  width       %Pixels;       #IMPLIED  -- width for cell --
  height      %Pixels;       #IMPLIED  -- height for cell --

has the validator stopped saying that TD can't take percentage values?


Hoare's Law of Large Programs:
    "Inside every large program is a small program struggling to get out." 
Received on Friday, 5 February 1999 06:50:30 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:24 UTC