W3C home > Mailing lists > Public > www-validator@w3.org > December 2000

[bug] name and id

From: Karl Dubost <karl@w3.org>
Date: Wed, 13 Dec 2000 10:02:46 +0100
Message-Id: <p05010401b65ce828246e@[195.36.182.194]>
To: www-validator@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:13:55 GMT