wahsaga: Keine Anker in XHTML Strict?

Beitrag lesen

hi,

http://www.w3.org/TR/html401/struct/links.html#adef-name-A

Unter dem Link zu CDATA steht:
"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."

Ein solches "further constraint", eine weitere Einschränkung, steht an der Stelle auf die du oben verlinkt hast:
"Note that this attribute shares the same name space as the id attribute."

Wenn wir dort dann dem Link zu id folgen, steht dort:
"id = name",

wobei unter der name-Verlinkung dann wieder folgendes zu finden ist:
<< 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 ("."). >>

Also ist m.E. ein # im name-Attribut eines Links auch in HTML 4.01 nicht erlaubt - auch wenn das zu den Sachen gehört, die nicht in der DTD hinterlegt werden können, und die somit der Validator auch nicht zu erkennen in der Lage ist.

gruß,
wahsaga

--
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }