Hi,
<a href="./index.php#0" target="maincontent">Test-Titel</a>
^ dies ist kein güligr Ankername.
Doch, das ist ein gültiger Ankername.
Das name-Attribut des a-Elements ist (siehe http://www.w3.org/TR/html401/struct/links.html#adef-name-A) als CDATA deklariert.
CDATA ist (siehe http://www.w3.org/TR/html401/types.html#type-cdata) wie folgt definiert:
CDATA is a sequence of characters from the document character set and may include character entities. User agents should interpret attribute values as follows:
* Replace character entities with characters,
* Ignore line feeds,
* Replace each carriage return or tab with a single space.
User agents may ignore leading and trailing white space in CDATA attribute values (e.g., " myval " may be interpreted as "myval"). Authors should not declare attribute values with leading or trailing white space.
For some HTML 4 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.
Although the STYLE and SCRIPT elements use CDATA for their data model, for these elements, CDATA must be handled differently by user agents. Markup and entities must be treated as raw text and passed to the application as is. The first occurrence of the character sequence "</" (end-tag open delimiter) is treated as terminating the end of the element's content. In valid documents, this would be the end tag for the element.
Ich sehe da keine Einschränkung, die '0' nicht zulassen würde.
Und nein, der folgende Listenpunkt (ID and NAME tokens) hat _NICHTS_ mit CDATA zu tun.
cu,
Andreas
MudGuard? Siehe http://www.Mud-Guard.de/
Fachfragen per E-Mail halte ich für unverschämt und werde entsprechende E-Mails nicht beantworten. Für Fachfragen ist das Forum da.