|
Posted by Toby Inkster on 12/11/05 12:18
maraguida wrote:
> <quote src="http://www.w3.org/TR/html4/types.html#h-6.2">
> 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 (".").
> </quote>
Yes, but if you look at the attribute definitions for the INPUT element
<http://www.w3.org/TR/html401/interact/forms.html#h-17.4>, you'll see that
the name attribute is defined as CDATA, and not a NAME token. The NAME
token type that you've quoted only actually applies to the META element's
name (and http-equiv) attribute.
Thus '<input name="/This\ %is+ $a; ~valid# @name^ |attribute!">' is
valid HTML 4, though it might not be very well supported.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Navigation:
[Reply to this message]
|