Opened 11 years ago

Closed 11 years ago

Last modified 8 years ago

#8173 closed defect (fixed)

Textarea: duplicate ID's in DOM after templating

Reported by: dante Owned by: Douglas Hays
Priority: high Milestone: 1.3
Component: Dijit - Form Version: 1.2.1
Keywords: Cc: Adam Peller
Blocked By: Blocking:

Description

The template for Textarea always creates duplicate id's. in the Firefox case, a fieldset and div have identical id's, and in the IE case it seems a textarea/span combination is used. I assume this is for <label for=""> nodes, but id's are unique, and should be treated as such.

Change History (4)

comment:1 Changed 11 years ago by bill

I suspect this is a workaround to an IE bug where you have to specify id on form fields in addition to the name attribute, in order to make submit work properly. Doug?

For TextBox though I know that the <input> gets id=foo and the domNode gets id=widget_foo, or something like that.

comment:2 Changed 11 years ago by Adam Peller

Cc: Adam Peller added

comment:3 Changed 11 years ago by Douglas Hays

Milestone: tbd1.3
Resolution: fixed
Status: newclosed

[15901] Fixes #8173. Change domNode ${id} references in Textarea to widget_${id}
It appears this may have been an oversight when the attributeMap code was added and the id was added to the focusNode automagically.

comment:4 Changed 8 years ago by bill

Component: DijitDijit - Form
Note: See TracTickets for help on using tickets.