W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > December 2005

Re: Another problem with leading digits

From: Chris Croome <chris@webarchitects.co.uk>
Date: Wed, 14 Dec 2005 15:27:12 +0000
To: Misha Wolf <Misha.Wolf@reuters.com>
Cc: public-rdf-in-xhtml-tf@w3.org, newsml-2@yahoogroups.com
Message-ID: <20051214152712.GA1395@webarchitects.co.uk>

Hi

On Wed 14-Dec-2005 at 02:08:43PM +0000, Misha Wolf wrote:
> 
> If the string "15093000" were to act as a fragment identifier within a
> Web page and if the fragment were to be identified by an attribute
> conforming to the XML attribute type 'ID', then this would be illegal,
> due to the leading digit.
> 
> HTML 4 appears to have no such constraint. 

I think it does:

  # 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 (".").

  http://www.w3.org/TR/html4/types.html#type-name

Chris

-- 
Chris Croome                               <chris@webarchitects.co.uk>
web design                             http://www.webarchitects.co.uk/ 
web content management                               http://mkdoc.com/   
Received on Wednesday, 14 December 2005 15:27:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:15:00 GMT