Re: [CSSOM] Behavior of setting to null

On 8/28/12 8:38 PM, Glenn Adams wrote:
> On Wed, Aug 29, 2012 at 5:44 AM, Tab Atkins Jr. <
> <>> 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.


Received on Wednesday, 29 August 2012 02:03:16 UTC