<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>5032</bug_id>
          
          <creation_ts>2007-09-11 07:06:01 +0000</creation_ts>
          <short_desc>Validator reports wrong acceptable parameters for td align attribute</short_desc>
          <delta_ts>2007-09-11 07:34:55 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Validator</product>
          <component>Parser</component>
          <version>HEAD</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>not applicable</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jeremy T. Gibson">jtgibson</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>16456</commentid>
    <comment_count>0</comment_count>
    <who name="Jeremy T. Gibson">jtgibson</who>
    <bug_when>2007-09-11 07:06:01 +0000</bug_when>
    <thetext>In a document using the HTML 4.01 DTD (and probably others), Validator is incorrectly reporting that the allowable values for the &quot;align&quot; attribute of a &quot;td&quot; tag are: &quot;top&quot;, &quot;middle&quot;, &quot;bottom&quot;, &quot;left&quot;, &quot;right&quot;.  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 &quot;center&quot; and &quot;char&quot; parameters and does not support the &quot;top&quot;, &quot;middle&quot;, or &quot;bottom&quot; parameters (which belong to the &quot;valign&quot; attribute, along with &quot;baseline&quot;).

(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:

&lt;table border=&quot;1&quot; width=&quot;90%&quot; class=&quot;indent&quot;&gt;
&lt;tr valign=&quot;top&quot;&gt;
  &lt;th&gt;Stable Suspension Layouts&lt;/th&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot;&gt;
  &lt;td&gt;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).&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;

(&quot;indent&quot; is a simple CSS element containing a &quot;margin-left: 1cm&quot; attribute.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16457</commentid>
    <comment_count>1</comment_count>
    <who name="Jeremy T. Gibson">jtgibson</who>
    <bug_when>2007-09-11 07:07:33 +0000</bug_when>
    <thetext>Er, oops.  The second td tag is supposed to be &lt;td align=&quot;center&quot;&gt; but I included the wrong snippet. =P</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16461</commentid>
    <comment_count>2</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-09-11 07:27:04 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Er, oops

You&apos;re having me puzzled here. 

The spec says:
http://www.w3.org/TR/html4/struct/tables.html#h-11.3.2
align = left|center|right|justify|char
and if I test a document with 
&lt;td align=&quot;blah&quot;&gt;
The error is:
Error  Line 16, Column 17: value of attribute &quot;ALIGN&quot; cannot be &quot;BLAH&quot;; must be one of &quot;LEFT&quot;, &quot;CENTER&quot;, &quot;RIGHT&quot;, &quot;JUSTIFY&quot;, &quot;CHAR&quot; .

Not a bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16462</commentid>
    <comment_count>3</comment_count>
    <who name="Jeremy T. Gibson">jtgibson</who>
    <bug_when>2007-09-11 07:34:55 +0000</bug_when>
    <thetext>Oh, you have gotta be kidding me.  Apparently I was sticking the &quot;center&quot; inside the img tag inside the cell, and I assumed that after stripping out the image tag it would still fail (that&apos;s why you don&apos;t see td align=&quot;center&quot;).

Not a bug.

Feck. =P</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>