W3C home > Mailing lists > Public > www-validator@w3.org > November 2001

Re: Problem in HTML, or bug in Wc# validator?

From: Glenn Kusardi <gkmail@stylix.de>
Date: Tue, 13 Nov 2001 11:46:50 +0100
Message-ID: <382759918.20011113114650@stylix.de>
To: Robert Orenstein <rlo@perforce.com>
CC: www-validator@w3.org
Hello,

> Sorry if this is the wrong place to send this, but every reference
> I've looked at and everyone I've talked to has said that the following
> SHOULD validate:
> ...but the validator gives the following errors:
>             <h2 id=foo>Test 2</h2>
>                    ^
>         Error: ID "FOO" already defined
>          Line 14, column 9:
>              <h1 id=foo>Test 1</h1>
>                     ^
>         Error: ID "FOO" first defined here
> Any ideas?

you can't use duplicate IDs in one document.

An ID is identifiing exactly one element in a document and must be
unique. Use classes instead.

<http://www.w3.org/TR/REC-html40/struct/global.html#adef-id>

-- 
Mit freundlichen Grüssen
Glenn Kusardi                            mailto:gkmail@stylix.de
Received on Tuesday, 13 November 2001 05:48:34 GMT

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