Bug #1470
closedIssue when setting 'background-color' style property when using Firefox
100%
Description
Using the following ixsl instruction:
<ixsl:set-attribute name="style:background-color" select="$bgColor"/>
This works as expected in all browsers tested except Firefox. In Firefox, no style attribute is added with the background-color as expected - and no error is reported.
Updated by Philip Fearon over 12 years ago
- Status changed from In Progress to Resolved
The issue here is that the DOM property name (used in JavaScript) is @backgroundColor@, whilst the CSS property name is @background-color@. In fact, all CSS properties that are hyphenated (except vendor-specific properties with a leading hyphen) are converted in a similar way.
Most browsers accept the hyphenated form of the property name, but Firefox doesn't. To achieve better cross-browser compatibility (and consistency with CSS), Saxon-CE has been modified to expect the hyphenated form of style property names (though JavaScript-style camel case names will also work - just as they do now) whether you're reading or writing style properties using the STYLE namespace.
Updated by O'Neil Delpratt almost 12 years ago
- Status changed from Resolved to Closed
- Fixed in version changed from Beta 0.2 to 1.0
Fixed in Saxon-CE version 1.0
Updated by O'Neil Delpratt almost 12 years ago
- Sprint/Milestone changed from Beta 0.2 to Release 1.0
- % Done changed from 0 to 100
Please register to edit this issue