Opened 10 years ago
Closed 10 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)
Change History (2)
Changed 10 years ago by
Attachment: | firefox-style-test.html added |
---|
comment:1 Changed 10 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
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.
Setting background-color with dojo.style