W3C home > Mailing lists > Public > www-style@w3.org > September 2012

Re: [cssom] CSSRule.parentRule and CSSRule.parentStyleSheet should return a "CSSRule?"

From: Glenn Adams <glenn@skynav.com>
Date: Sat, 1 Sep 2012 08:41:14 +0800
Message-ID: <CACQ=j+cQ2SoMmnXVEWXaik7xRY8kqaJkqG8dCsBRjvWREX_05A@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: www-style@w3.org
On Sat, Sep 1, 2012 at 8:28 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 8/31/12 7:20 PM, Glenn Adams wrote:
>
>> Tentatively made CSSRule.parentStyleSheet return CSSStyleSheet?, but may
>> need to back it out pending further discussion. In particular, could you
>> explain what circumstances end up yielding no parent stylesheet?
>>
>
> Not sure offhand, but I'm just looking at our implementation, and it
> definitely has a null stylesheet pointer there in some cases...


Please check. If CSSOM defined constructors for CSSRule concrete
subclasses, then I could see this happening. But it doesn't at present, and
I'm not sure it appropriate to spec if the spec doesn't otherwise define a
context in which it could be null.
Received on Saturday, 1 September 2012 00:42:01 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:59 GMT