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

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 28 Aug 2012 23:27:43 -0700
Message-ID: <CAAWBYDCCjyCL6sjZs0S1nmibc=yHLiMaL2hdvHuB1oQuVBZK5w@mail.gmail.com>
To: Shane Stephens <shans@google.com>
Cc: Garrett Smith <dhtmlkitchen@gmail.com>, Boris Zbarsky <bzbarsky@mit.edu>, www-style list <www-style@w3.org>
On Tue, Aug 28, 2012 at 10:34 PM, Shane Stephens <shans@google.com> wrote:
>> That method is useless and not worth remembering. Good thing
>> removeProperty method does not actually remove a property, either,
>> because otherwise, you'd end up with typeof style.color ==
>> "undefined".
>
> Right, but we're talking about removing a declaration, not a property. Seems
> like removeProperty is just incorrectly named.

No, it removes CSS properties (and also descriptors, which is what we
call properties in at-rules).  "removeDeclaration" might be slightly
more accurate, given our terminology, but "removeProperty" isn't too
wrong.  (And it's not worth trying to fix it.)

~TJ
Received on Wednesday, 29 August 2012 06:51:17 GMT

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