Odd case sensitive rules regarding <A name="abc">

Can someone explan the logic in this?

>From the HTML4 spec: [1]

> Section 12.2.1  Syntax of anchor names
> An anchor name is the value of either the name or id attribute
> when used in the context of anchors. Anchor names must observe
> the following rules:
> * Uniqueness: Anchor names must be unique within a document.
> Anchor names that differ only in case may not appear in the
> same document
> * String matching: Comparisons between fragment identifiers
> and anchor names must be done by exact (case-sensitive) match.

So the following code is illegal:

----------------
<P ID=ONE>...
<P ID=one>...
<P> <A HREF="ONE">Link to first paragraph</A>
<P> <A HREF="one">Link to second paragraph</A>
----------------

Yet the following code should do nothing:
----------------
<P ID=one>...
<P> <A HREF="ONE">Link to the paragraph</A>
----------------

Why???

[1]: http://www.w3.org/TR/REC-html40/struct/links.html#h-12.2.1

--
Ian Hickson
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GIT/M/S d- s+: a--- C++(+++)>$ U P L+ !E W++ N++ o? K? w++>+++ O- !M V- PS+
PE- Y+ PGP t 5+++>++++ X- R+++ tv b++(+++) DI D++ G e-(*)>+++++ h!()(--) y?
------END GEEK CODE BLOCK------

Received on Wednesday, 18 February 1998 04:28:51 UTC