Hi,
<input type="submit" name="~OkCode(NEXT)" style="background-image:url(pfad+grafik.gif);">
ich hab's dir ja auf die selbe frage im heise-forum hin schon gesagt, aber auch hiernochmal, damit so ein fehler nicht unwidersprochen ins archiv wandert:
"~OkCode(NEXT)" ist aus _mehreren_ gründen _kein_ gültiger wert für name.
Please explain.
Das name-Attribut des input-Elements hat als Datentyp CDATA.
name = cdata [CI]
This attribute assigns the control name.
(siehe http://www.w3.org/TR/html401/interact/forms.html#adef-name-INPUT)
Und CDATA ist hier (<>) definiert als:
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.
Eine solche im letzten Absatz des Zitates erwähnte Einschränkung kann ich für das name-Attribut des input-Elements nicht finden.
Welche Gründe sprechen also bitte dafür, daß "~OkCode(NEXT)" kein gültiger name-Attributwert im input-Element ist?
Und um gleich vorzubeugen: das name-Attribut des input-Elements ist (trotz des Namens name) kein NAME-token (auch kein ID-token).
(die hier: http://www.w3.org/TR/html401/types.html#type-id definiert werden).
cu,
Andreas
Der Optimist: Das Glas ist halbvoll. - Der Pessimist: Das Glas ist halbleer. - Der Ingenieur: Das Glas ist doppelt so groß wie nötig.
http://mud-guard.de/? http://www.andreas-waechter.de/ http://www.helpers.de/