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

NAME and ID attribute types content model

From: Christian Rémillard <christian.remillard@umontreal.ca>
Date: Tue, 18 Dec 2001 20:50:18 -0500
Message-Id: <>
To: www-validator@w3.org

If i am not mistaken, the HTML 4.0 and following versions define the ID and NAME attributes content type as CDATA with some limitations:

<< For some HTML 4.0 attributes with CDATA attribute values, the specification imposes further constraints on the set of legal values for the attribute that may not be expressed by the DTD. 


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 ("."). >>
[excerpt from: http://www.w3.org/TR/1998/REC-html40-19980424/types.html#type-cdata]

Assuming this is right, there is an error with the validating service which doesn't trigger on an attribute with "1234" as content.


Christian Rémillard
Chargé de recherche
École de bibliothéconomie et des sciences de l'information
Université de Montréal

Pavillon Lionel-Groulx, local C-2042
Téléphone  : +1 514 343-6111 poste 1743
Télécopieur: +1 514 343-5753
Received on Tuesday, 18 December 2001 20:50:51 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 November 2015 11:01:15 UTC