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

[cssom] Behaviour of DOM API when changing CSSRule

From: Ian Kilpatrick <ikilpatrick@chromium.org>
Date: Thu, 12 Mar 2015 17:09:34 +1100
Message-ID: <CAJL3UpTumMpyuHWx3P4RapQ_uii7a6sYKs_=1tEHQoE0YDRxeA@mail.gmail.com>
To: www-style@w3.org
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?

Thanks,
Ian

[1] From: http://crbug.com/147285
[2] Example: http://jsfiddle.net/T4aCC/29/
Received on Thursday, 12 March 2015 09:37:51 UTC

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