Opened 8 years ago

Closed 8 years ago

#13295 closed defect (invalid)

dojo.style ignores hyphenated names in Firefox

Reported by: cdanielsfisv Owned by:
Priority: high Milestone: tbd
Component: General Version: 1.6.1
Keywords: Cc:
Blocked By: Blocking:

Description

Firefox (Mac, 5.0) ignores dojo.style's attempts to set any style with a hyphenated name like "background-color". It works as expected in IE9, Chrome, and Safari. The attached HTML file demonstrates the issue.

Attachments (1)

firefox-style-test.html (440 bytes) - added by cdanielsfisv 8 years ago.
Setting background-color with dojo.style

Download all attachments as: .zip

Change History (2)

Changed 8 years ago by cdanielsfisv

Attachment: firefox-style-test.html added

Setting background-color with dojo.style

comment:1 Changed 8 years ago by ben hockey

Resolution: invalid
Status: newclosed

use camelCased names not hyphenated names. this is documented in the dojo.style API docs.

the style property to set in DOM-accessor format ("borderWidth", not "border-width") or an object with key/value pairs suitable for setting each property.

Note: See TracTickets for help on using tickets.