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

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.

-Boris

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