PDA

View Full Version : [2.2][DUP] RadioGroup element name exceptions



hunkybill
20 Aug 2008, 10:57 AM
Hi,

In FF3 running Firebug, Ext 2.2


items: [
{boxLabel: '1', name: "foo[bar]", inputValue: 1, checked: true},
{boxLabel: '2', name: "foo[bar]", inputValue: 2},
{boxLabel: '3', name: "foo[bar]", inputValue: 3},
{boxLabel: '4', name: "foo[bar]", inputValue: 4},
{boxLabel: '5', name: "foo[bar]", inputValue: 5}
]

Throws a nasty exception due to the presence of '[' and ']' characters in the name, which should be allowed...

evant
20 Aug 2008, 4:13 PM
Actually they shouldn't be allowed, see:

http://www.w3.org/TR/REC-html40/types.html#type-cdata



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 (".").


That being said, this is a DUP of another post, please search before posting.

Condor
20 Aug 2008, 10:42 PM
This is the previous bugreport (http://extjs.com/forum/showthread.php?t=44422) (includes fix).