Opened 11 years ago

Closed 10 years ago

#7896 closed defect (fixed)

dojo.attr() does not handle readOnly correctly

Reported by: Mike Wilcox Owned by: liucougar
Priority: high Milestone: 1.3
Component: Core Version: 1.2beta
Keywords: dojo.attr, readonly Cc: phiggans
Blocked By: Blocking:

Description

If you use "readonly" (small case 'o') in IE in the HTML, it will correct it to the proper camel case of "readOnly". This doesn't work in JavaScript? however.

I suggest that "readonly" be added to the case list of the private method "_fixAttrName" in dojo._base.html.

The precedent would be tabindex, which is handled the same way.

Change History (2)

comment:1 Changed 10 years ago by liucougar

Milestone: tbd1.3
Owner: changed from simonjb to liucougar

comment:2 Changed 10 years ago by liucougar

Resolution: fixed
Status: newclosed

(In [16082]) fixes #7896: readonly needs to be treated different (just as tabindex) for IE<8 !strict

Note: See TracTickets for help on using tickets.