W3C home > Mailing lists > Public > www-validator-cvs@w3.org > September 2007

[Bug 5032] Validator reports wrong acceptable parameters for td align attribute

From: <bugzilla@wiggum.w3.org>
Date: Tue, 11 Sep 2007 07:06:02 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1IUzow-0007tR-IK@wiggum.w3.org>


           Summary: Validator reports wrong acceptable parameters for td
                    align attribute
           Product: Validator
           Version: HEAD
          Platform: PC
               URL: not applicable
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Parser
        AssignedTo: dave.null@w3.org
        ReportedBy: jtgibson@telus.net
         QAContact: www-validator-cvs@w3.org

In a document using the HTML 4.01 DTD (and probably others), Validator is
incorrectly reporting that the allowable values for the "align" attribute of a
"td" tag are: "top", "middle", "bottom", "left", "right".  However, this is
incorrect according to the specification
(http://www.w3.org/TR/html4/struct/tables.html#h-11.3.2); specifically, the
attribute also supports the "center" and "char" parameters and does not support
the "top", "middle", or "bottom" parameters (which belong to the "valign"
attribute, along with "baseline").

(One could use the text-align attribute of CSS as a work-around, but this is
still a bug in the parser because it is not conforming to the specification.)

Here is an example table which fails for me:

<table border="1" width="90%" class="indent">
<tr valign="top">
  <th>Stable Suspension Layouts</th></tr>
<tr valign="top">
  <td>The following configurations are all the possibilities which satisfy the
rules of longitudinal and lateral stability and which provide stability on the
four different hemispheres (fore, aft, port, star).</td></tr>

("indent" is a simple CSS element containing a "margin-left: 1cm" attribute.)
Received on Tuesday, 11 September 2007 07:06:11 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:30 UTC