Ticket #301 (closed defect: fixed)

Opened 4 months ago

Last modified 2 months ago

MochiKit.Style.setStyle() doesn't correctly handle "float" values

Reported by: cederberg@gmail.com Assigned to: cederberg@gmail.com
Priority: normal Milestone: MochiKit 1.4
Component: component1 Version:
Severity: normal Keywords:
Cc:

Description

MochiKit.Style.setStyle() doesn't correctly handle "float" values. Since Firefox uses "cssFloat" and IE "styleFloat", setStyle() should map the value to one (or both) of these properties automatically:

    case "float":
    case "cssFloat":
    case "styleFloat":
        node.style.cssFloat = value;
        node.style.styleFloat = value;
        break;

Change History

04/08/08 05:30:32 changed by cederberg@gmail.com

  • owner changed from somebody to cederberg@gmail.com.
  • status changed from new to assigned.

05/13/08 13:25:47 changed by cederberg@gmail.com

  • status changed from assigned to closed.
  • resolution set to fixed.

Fixed in [1373]. The previous version was broken for setStyle in FF and getStyle+setStyle in IE. It seems Safari 3.1 already contains workarounds for this issue.