HTML 4 spec section 6.2 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
(".")."

XHTML spec section C.8 says, "Note that the collection of legal
values in XML 1.0 Section 2.3, production 5 is much larger than that
permitted to be used in the ID and NAME types defined in HTML 4. When
defining fragment identifiers to be backward-compatible, only strings
matching the pattern [A-Za-z][A-Za-z0-9:_.-]* should be used. See
Section 6.2 of [HTML4] for more information."

Could you post links to some of these discussions?

On Mar 2, 2:30 pm, Matt Kruse <m...@thekrusefamily.com> wrote:
> On Mar 2, 1:32 pm, mkmanning <michaell...@gmail.com> wrote:
>
> > And (if I had a nickel for every time I've said this), using [] in the
> > name isn't valid; any framework that requires you to compromise your
> > markup is a deficient framework IMO.
>
> It is most certainly valid to use "[]" in an input name. See any one
> of many discussions on the web on this topic.
>
> Matt Kruse

Reply via email to