Project

Profile

Help

Bug #1470

closed

Issue when setting 'background-color' style property when using Firefox

Added by Philip Fearon about 12 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Sprint/Milestone:
Start date:
2012-03-29
Due date:
% Done:

100%

Estimated time:
Platforms:

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.

Actions #1

Updated by Philip Fearon about 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.

Actions #2

Updated by Philip Fearon almost 12 years ago

  • Fixed in version set to Beta 0.2
Actions #3

Updated by Philip Fearon almost 12 years ago

  • Sprint/Milestone set to Beta 0.2
Actions #4

Updated by O'Neil Delpratt about 11 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

Actions #5

Updated by O'Neil Delpratt about 11 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

Also available in: Atom PDF