Re: Expected behavior of CSSRule's setCssText.

Chris Wilson wrote:
> 
> It will remove it.  setCssText is setting the _entire_ cssText - otherwise,
> it should be called "appendCssText".
> 
[[[
Setting this attribute will result in the parsing of the new value and
resetting of the properties in the declaration block. It also allows the
insertion of additional properties and their values into the block.
]]]

-- Document Object Model CSS
http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510/css.html#CSS-CSSStyleDeclaration
Wed, 10 May 2000 15:09:02 GMT

Hum, the cssText description could be better. What about :

Setting this attribute will result in the parsing of the new value and
resetting of all the properties in the declaration block including
theremoval or addition of properties.

Philippe

Received on Thursday, 14 September 2000 20:14:20 UTC