Ticket #6957 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

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

Reported by: alex Owned by: alex
Priority: normal Milestone: 1.2
Component: Core Version: 1.1.1
Severity: normal Keywords:
Cc:

Description

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

Change History

Changed 2 years ago by alex

  • status changed from new to closed
  • resolution set to fixed

fixed in [13991]

Changed 2 years ago by bill

Looks like a dup of #6665.

Changed 2 years ago by bill

  • status changed from closed to reopened
  • resolution deleted

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

Changed 2 years ago by bill

  • status changed from reopened to closed
  • resolution set to fixed

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