Re: Fragment identifiers and 'ID' attribute values: case matters

* Etan Wexler wrote:
>HTML4 has an SGML declaration that specifies that names fold to upper 
>case.  Consequently, an 'ID' attribute value specification of "AnElement" 
>produces the attribute value "ANELEMENT".  Consequently, the correct 
>fragment identifier in a URI reference for an element with that 'ID' 
>attribute value specification is "#ANELEMENT", not "#AnElement".

No, please see http://www.w3.org/TR/html4/struct/links.html#h-12.2.1

[...]
  * String matching: Comparisons between fragment identifiers and
    anchor names must be done by exact (case-sensitive) match.
[...]

Maybe you like to refer to

  http://www.w3.org/2002/02/mid/20010706174702X.mimasa@w3.mag.keio.ac.jp

for additional information on this contradiction in the specification.

Received on Saturday, 25 May 2002 22:12:27 UTC