Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#11442 closed defect (fixed)

MappedTextBox form widgets don't escape quotation marks inside name attribute

Reported by: enlar Owned by: bill
Priority: high Milestone: 1.8
Component: Dijit - Form Version: 1.4.3
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by Adam Peller)

I just updated an app from 1.3 to dojo 1.4.3 and noticed a strange behaviour in dijit.form.NumberTextBox.

If the original HTML is as follows:

<input class="cantidad" type="text" dojoType="dijit.form.NumberTextBox"
id="cantidad_2_0" name="lineas['2_0'][cantidad]" value="">

Dojo 1.4.3 outputs the following hidden field:

<input type="hidden" ][cantidad]="" 2_0="" name="lineas[" value="">

But dojo 1.3 did output something that I expected more:

<input type="text" style="display: none;"
name="lineas['2_0'][cantidad]">

Is this a bug or a know feature in dojo 1.4? Dojo 1.4.3 output breaks the app, as it is changing the form field name.

Thanks a lot.

Change History (6)

comment:1 Changed 9 years ago by Adam Peller

Description: modified (diff)

comment:2 Changed 9 years ago by bill

Milestone: tbd1.6
Owner: set to bill
Status: newassigned
Summary: Strange dijit.form.NumberTextBox behaviourMappedTextBox form widgets don't escape quotation marks inside name attribute

Good catch, thought I had fixed this in [21865] (#10970), but the issue still existed for widgets that extend MappedTextBox, like NumberTextBox.

comment:3 Changed 9 years ago by bill

Resolution: fixed
Status: assignedclosed

(In [22538]) Escape special characters in name for MappedTextBox widgets. Fixes #10970, #11442.

comment:4 Changed 9 years ago by bill

Component: DijitDijit - Form

comment:6 Changed 8 years ago by bill

In [27853]:

Fix quote escaping, thanks Doug, fixes #14784, refs #10970, #11442 !strict.

comment:7 Changed 8 years ago by bill

Milestone: 1.61.8
Note: See TracTickets for help on using tickets.