- From: T.J. Crowder <tj@crowdersoftware.com>
- Date: Tue, 4 May 2010 07:54:52 +0100
- To: Philip Taylor <pjt47@cam.ac.uk>, nathan@webr3.org
- Cc: public-html-comments <public-html-comments@w3.org>
- Message-ID: <v2ic95470a1005032354we245d401j88feed606e5c921d@mail.gmail.com>
> > The <input name> attribute is described in > http://whatwg.org/html#attr-fe-name where the only conformance requirement > is: > "If the attribute is specified, its value must not be the empty string." > and I don't believe there are any other restrictions on it There aren't, we just recently had a thread about this, resulting in a couple of (fairly small) changes to the spec to clarify that. Bug report: http://www.w3.org/Bugs/Public/show_bug.cgi?id=9493 Changes diff: http://html5.org/tools/web-apps-tracker?from=5034&to=5035 You can see the changes in place in the editor's draft, which I *believe* is here (certainly the changes are in that document, and the title is "Editor's Draft" :-) ): http://dev.w3.org/html5/spec/ -- T.J. Crowder Independent Software Consultant tj / crowder software / com www.crowdersoftware.com On 30 April 2010 18:21, Philip Taylor <pjt47@cam.ac.uk> wrote: > Nathan wrote: > >> Hi All, >> >> I've been looking through the spec for clarification on whether URIs can >> be used inside the name= attribute on form elements: >> >> <input type="text" name="http://ex.org/ns#name"... >> >> in addition the following syntax: >> >> name="uri[uri]" >> >> Any clarification? >> > > The <input name> attribute is described in > http://whatwg.org/html#attr-fe-name where the only conformance requirement > is: > > "If the attribute is specified, its value must not be the empty string." > > and I don't believe there are any other restrictions on it, so any URI (and > any other string) except "" is allowed. (You might want to also avoid the > names "isindex" and "_charset_" since they have special processing behaviour > in certain cases, though.) > > -- > Philip Taylor > pjt47@cam.ac.uk > >
Received on Tuesday, 4 May 2010 06:55:51 UTC