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

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 UTC