W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2013

Re: [cssom] Proposal for obtaining robust style information via Javascript - getStyle()

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Fri, 8 Feb 2013 19:23:32 -0800
Message-ID: <CABZUbM25iWag5F69sjxT26eVJMC4Np9PgqMh4SLBnyLmyNJQOg@mail.gmail.com>
To: Cameron McCormack <cam@mcc.id.au>
Cc: Bjoern Hoehrmann <derhoermi@gmx.net>, public-script-coord@w3.org
On 2/8/13, Cameron McCormack <cam@mcc.id.au> wrote:
> On 7/02/13 10:16 AM, Bjoern Hoehrmann wrote:
>> I am wondering how people would react if one was to suggest to allow
>>
>>    element.computedStyle.color
>>
>> and also
>>
>>    element.computedStyle("::before").color
>
> To me that looks a bit strange.  As Anne says we have decided that
> callable objects (that are more than just plain Functions) are something
> to avoid.
>
I missed that thread. Why is it bad to have functions that have
additional properties?
-- 
Garrett
Twitter: @xkit
personx.tumblr.com
Received on Saturday, 9 February 2013 03:24:00 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:09 UTC