W3C home > Mailing lists > Public > www-style@w3.org > March 2015

Re: [cssom] Behaviour of DOM API when changing CSSRule

From: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Date: Thu, 12 Mar 2015 12:22:01 +0100
To: www-style@w3.org
message-id: <550176D9.3070205@disruptive-innovations.com>
On 12/03/2015 07:09, Ian Kilpatrick wrote:
> Hi all,
>
> When you change a CSSRule via CSSOM api, e.g.
> document.styleSheets[3].cssRules[0].color = 'red';
>
> What should be the behavior of subsequently querying the textContent of
> the same stylesheet element? E.g.
> document.head.children[7].textContent;
>
> Should it remain the same or return the updated version of the stylesheet?

The former.

</Daniel>
Received on Thursday, 12 March 2015 11:22:27 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:30 UTC