Ticket #3929 (closed defect: fixed)
setClass fails on SVG documents
| Reported by: | guest | Owned by: | sjmiles |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | HTML | Version: | 0.4 |
| Severity: | normal | Keywords: | setClass svg gfx |
| Cc: |
Description
This is related to ticket #3878, and could be seen as an extension. But, different failure, different bug. dojo.html.setClass almost works on an SVG document node. It fails when it tries to assign the node className directly from a string after calling node.setAttribute ("class", classStr);
There is probably some platform where the assignment is necessary. I've attached a patch that leaves the assignment, but fixes the exception on SVG document nodes.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.