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: <5.1.0.14.2.20011218202409.00a9c238@poste.umontreal.ca>
To: www-validator@w3.org
Hello,

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.

Thanks,


-------------------------------------------------------------------------------------
Christian Rémillard
christian.remillard@umontreal.ca
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 GMT

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