mootools/mootools-core — Issue #2219: Fx.Elements fires error in IE7 for property 'color' : [0, 0, 0]
Author: ibolmo
Created: 2012-01-19 08:11:02+00:00
State: open
Labels: bug

(from [Lighthouse](https://mootools.lighthouseapp.com/projects/2706/tickets/514-fxelements-fires-error-in-ie7-for-property-color-0-0-0))

Fx.Elements fires error in IE7 for property 'color' : [0, 0, 0], in FF, Opera works good.

This is part of code.

``` javascript
var fx_enter = new Fx.Elements(items, {duration: 1700, transition: Fx.Transitions.Elastic.easeOut});
var item = $('items #3');
var i = 3;
item.addEvent("mouseenter", function(event) {
if (item == event.target)
{
var fx = {};
fx[i] = {
'font-size': zoom_size,
'border-width': 1,
'top': top,
'left': left,
'color': [0, 0, 0] //Set this property will fail in IE 7.
}
}
})
```

----

(from [comment](https://mootools.lighthouseapp.com/projects/2706/tickets/514-fxelements-fires-error-in-ie7-for-property-color-0-0-0#ticket-514-5))

Reopening this. This isn't an Fx issue; Fx. just tries to set the style, right? It sounds to me like setStyle('color', [0,0,0]) doesn't work in IE (in 1.2).