W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2000

Re: Expected behavior of CSSRule's setCssText.

From: Philippe Le Hegaret <plh@w3.org>
Date: Thu, 14 Sep 2000 20:14:11 -0400
Message-ID: <39C169D3.62D8E0D6@w3.org>
To: Chris Wilson <cwilso@microsoft.com>
CC: "'bbrodie@savagesoftware.com'" <bbrodie@savagesoftware.com>, www-dom@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:47 GMT