ID 'FOO' already defined

Hi

I've just used your HTML validation service at http://validator.w3.org/

My page failed to validate because of the following error:

“ID ‘FOO’ already defined” 
You have defined the id/name ‘FOO’ more then once. You will also get a
message telling you where it was first defined. Be aware that this
message may be the result of an ambiguity in the specification. While
user-agents must treat values of the id attribute as case-sensitive,
they must still be case-insensitive unique in the document. See Section
12.2.1 Syntax of anchor names in the HTML 4.01 Recommendation for
further information. 

The repeated IDs are used to match column headers in the top row of my
table with id'd rows further down, ie:

  <table summary="An accessible table.">
    <tr> 
      <td headers="h1">Column 1 heading</td>
      <td headers="h2">Column 2 heading</td>
      <td headers="h3">Column 3 heading</td>
    </tr>
    <tr> 
      <td id="h1">Column 1 Content</td>
      <td id="h2">Column 2 Content</td>
      <td id="h3">Column 3 Content</td>
    </tr>
    <tr> 
      <td id="h1">Column 1 Content</td>
      <td id="h2">Column 2 Content</td>
      <td id="h3">Column 3 Content</td>
    </tr>
</table>

Is there someway for your validation script to ignore id tags that are
contained within tables, or at least within <td> tags?


Cheers

Dan Smith
 
dansmith | webproduction
chrometoaster
creative · graphic · interactive
internet · photography · motion
s
| Level 2, 170 Cuba St
p
| P.O. Box 11 · 738
c
| Wellington, New Zealand
m
| +64 021 136 9346
w
| +64 4 384 2057
f
| +64 4 384 2047
e
| dan.smith@chrometoaster.com
w
| www.chrometoaster.com
 

Received on Thursday, 20 March 2003 01:10:57 UTC