Opened 11 years ago

Closed 11 years ago

#6957 closed defect (fixed)

dojo.attr() does not handle "class" and "for" correctly

Reported by: alex Owned by: alex
Priority: high Milestone: 1.2
Component: Core Version: 1.1.1
Keywords: Cc:
Blocked By: Blocking:

Description

dojo.attr() should convert "class" and "for" to "className" and "htmlFor", respectively and handle other escaping/conversion issues for attribute assignment.

Change History (4)

comment:1 Changed 11 years ago by alex

Resolution: fixed
Status: newclosed

fixed in [13991]

comment:2 Changed 11 years ago by bill

Looks like a dup of #6665.

comment:3 Changed 11 years ago by bill

Resolution: fixed
Status: closedreopened

dojo.attr(node, "class", ...) doesn't work on IE, as evidenced by the tests added above in [13991].

comment:4 Changed 11 years ago by bill

Resolution: fixed
Status: reopenedclosed

(In [14475]) Fixes #6957 (!strict): dojo.attr() does not handle "class" correctly on IE. Perhaps we should be doing node.className rather than node.[gs]etAttribute("className", ..) but for now just doing minimal change to get unit test working.

Note: See TracTickets for help on using tickets.