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

Ian Hickson (exxieh@bath.ac.uk)
Tue, 17 Feb 1998 16:50:50 -0500 (EST)

Date: Tue, 17 Feb 1998 16:50:50 -0500 (EST)
Message-ID: <000401bd3bee$0f40c480$cf20268a@hpxu>
From: Ian Hickson <exxieh@bath.ac.uk>
To: www-html@w3.org
Subject: 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>


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

Ian Hickson
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?