[bug] name and id

Hi,

I don't know if it's really a bug but I have discovered that 
problem(?) with BBedit.

In HTML 4.01 [http://www.w3.org/TR/html401/], if you look for 
<code>id</code> attributes 
[http://www.w3.org/TR/html401/struct/global.html#adef-id], you have a 
clear definition of this attribute.

The type of values for this attributes is ID which is defined in 
[http://www.w3.org/TR/html401/types.html#type-name] and it is said 
that.

****
ID and NAME tokens must begin with a letter ([A-Za-z]) and may be 
followed by any number of letters, digits ([0-9]), hyphens ("-"), 
underscores ("_"), colons (":"), and periods (".").
****

This is an SGML basic data types [ISO 8879].

So now create a document with a link like this one.

****
blabla
<a href="#2000-cool">Be Strict To Be Cool!</a>
blabla
<a id="2000-cool">How to respect the standards</a>
****

This document is not correct and it's detected by BBedit but not by 
the HTML validator. Is the problem inside the perl code or inside 
nsgmls? It should be inside nsgmls, because it's an sgml feature.

So we must have for the correct HTML.

****
blabla
<a href="#year2000-cool">Be Strict To Be Cool!</a>
blabla
<a id="year2000-cool">How to respect the standards</a>
****


-- 
Karl Dubost / W3C - Conformance Manager
           http://www.w3.org/

      --- Be Strict To Be Cool! ---

Received on Wednesday, 13 December 2000 04:06:34 UTC