- From: Irene Vatton <vatton@inrialpes.fr>
- Date: Fri, 1 Feb 2008 10:14:42 +0100
- To: Bartolomé Sintes Marco <bartolomesintes@ono.com>
- Cc: www-amaya@w3.org
On Sunday 27 January 2008 08:29, Bartolomé Sintes Marco wrote: > Hi, > > Amaya 9.99-4 WinXP does not let the user use the [ and ] characters in > the name attribute of form elements. Amaya changes these characters into > _ characters. > > If I want to create the following code > <p>Text 1: <input type="text" name="text[1]" /></p> > <p>Text 2: <input type="text" name="text[2]" /></p> > that is what I get using the toolbar: > <p>Text 1: <input type="text" name="text_1_" /></p> > <p>Text 2: <input type="text" name="text_2_" /></p> > > By the way, if the [ and ] characters are typed in the source view, > Amaya does not change them. > > Best regards, > Bartolomé Sintes (http://www.mclibre.org) Hi, Within XHTML documents, the name attribute value must be duplicated into the id attribute. So the following restriction is applied: "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 (".")." Regards -- Irène Vatton @ INRIA Rhône-Alpes
Received on Friday, 1 February 2008 09:17:24 UTC