Opened 11 years ago

Closed 11 years ago

#13295 closed defect (invalid) 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:


Firefox (Mac, 5.0) ignores'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 11 years ago.
Setting background-color with

Download all attachments as: .zip

Change History (2)

Changed 11 years ago by cdanielsfisv

Attachment: firefox-style-test.html added

Setting background-color with

comment:1 Changed 11 years ago by ben hockey

Resolution: invalid
Status: newclosed

use camelCased names not hyphenated names. this is documented in the 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.