[dokuwiki] Re: "Table of Contents" link generation

  • From: Sander Tekelenburg <tekelenb@xxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sun, 17 Jun 2007 09:14:34 +0200

At 23:41 +0200 UTC, on 2007-06-16, Andreas Gohr wrote:

> On Sat, 16 Jun 2007 17:52:52 +0200
> "YC Chan" <peter.chan.yc@xxxxxxxxx> wrote:
>
>> Suggestion for allowing anchor names to start with numbers: append an
>> '_' I didn't know of this limitation, but it seems a 'weak'
>> limitation to overcome.
>
> Look back in the mailinglist archives this was throughly discussed,
> it's a limitation in the HTML specs. IIRC an underscore is not allowed
> as well.

Correct. Fragment identifiers must start with [A-Za-z].
<http://www.w3.org/TR/html4/types.html#type-cdata> says "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 (".").".

The current incarnation of HTML 5 only says that spaces are illegal:
<http://www.whatwg.org/specs/web-apps/current-work/multipage/section-global.html#the-id>.
But that may well change still and it will anyway be quite a while before
HTML 5 is an actual spec.


-- 
Sander Tekelenburg, <http://www.euronet.nl/~tekelenb/>
-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: