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

Re: [CSSOM] Behavior of setting .style.foo to null

From: Glenn Adams <glenn@skynav.com>
Date: Wed, 29 Aug 2012 10:40:43 +0800
Message-ID: <CACQ=j+eTSxmax5L=oTPLXHK=xFPrX3hrtFixc_y65kYgXhQ84A@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
On Wed, Aug 29, 2012 at 10:02 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 8/28/12 8:38 PM, Glenn Adams wrote:
>
>>
>> On Wed, Aug 29, 2012 at 5:44 AM, Tab Atkins Jr. <jackalmage@gmail.com
>> <mailto:jackalmage@gmail.com>> wrote:
>>
>>     I'd prefer nulling it to remove the declaration, personally.  Weight
>>     of compatibility favors that, it seems.
>>
>>
>> Agreed. Just to make sure I have it correct, setting to either empty
>> string or null should have the same effect as removeProperty. Yes? I
>> will spec it thus.
>>
>
> The simplest way to do it is probably to make the IDL say:
>
>   [TreatNullAs=EmptyString] attribute DOMString display;
>
> and then have the prose say that empty string means call removeProperty
> and return.


yes, that is my plan modulo using a prose template to describe the IDL, as
we have discussed elsewhere;
Received on Wednesday, 29 August 2012 02:41:29 GMT

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