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

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

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 28 Aug 2012 22:02:46 -0400
Message-ID: <503D7846.7070703@mit.edu>
To: Glenn Adams <glenn@skynav.com>
CC: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
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.

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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:20 UTC