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

Re: [VE][141] Validator throws "not-unique" error on Case Sensitive IDs

From: David Håsäther <hasather@gmail.com>
Date: Fri, 26 Jan 2007 23:39:55 +0100
Message-ID: <45BA833B.9060001@gmail.com>
To: John Lascurettes <John.Lascurettes@providence.org>
CC: www-validator@w3.org

On 2007-01-26 20:43, John Lascurettes wrote:

> Validating http://providence.org/resources/oregon/test/john/0/id.htm
> Error [141]: "ID X already defined"
> This paragraph has attribute id="Unique"
> This paragraph has attribute id="uNIQUE"
> The Validator throws this error:
> ID "UNIQUE" already defined.
> Shouldn't they be considered not the same ID since the ID attribute is 
> defined as case sensitive 
> (http://www.w3.org/TR/html4/struct/global.html#adef-id)? UA's treat them 
> that way. Why is it an error in the Validator then?

The error is not in the validator, but in the spec. In SGML, the value 
of attributes with a declared value of ID are case folded, which means 
that both "Unique" and "uNIQUE" will end up as "UNIQUE".

David Håsäther
Received on Friday, 26 January 2007 22:40:13 UTC

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