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

Re: [bug] name and id

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Wed, 13 Dec 2000 20:52:39 +0100
Message-ID: <006901c0653e$406fcb60$c7e0a8c0@de>
To: "Karl Dubost" <karl@w3.org>
Cc: <www-validator@w3.org>
* "Karl Dubost" <karl@w3.org> wrote:
| ****
| 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 (".").
| ****

| ****
| 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.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<title></title>
<p><a id="2000-cool">How to respect the standards</a>

gives:

  Error: value of attribute "ID" invalid: "2" cannot start a name

The value of href is CDATA, the validator cannot complain about it. He could
if it were of type IDREF.
--
Björn Höhrmann ^ mailto:bjoern@hoehrmann.de ^ http://www.bjoernsworld.de
am Badedeich 7 ° Telefon: +49(0)4667/981ASK ° http://bjoern.hoehrmann.de
25899 Dagebüll # PGP Pub. KeyID: 0xA4357E78 # http://learn.to/quote [!]e
  "Everything we see or seem is but a dream within a dream" - E.A. Poe
Received on Wednesday, 13 December 2000 14:51:38 GMT

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