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

Re: [webcomponents]: What callbacks do custom elements need?

From: Brian Kardell <bkardell@gmail.com>
Date: Mon, 11 Mar 2013 18:08:26 -0700
Message-ID: <CADC=+jfs3-9eX75wkBHQ1UBtrSUE_-=-YfMGzC6GfRhyJ7xCQw@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: public-webapps@w3.org
On Mar 11, 2013 9:03 PM, "Boris Zbarsky" <bzbarsky@mit.edu> wrote:
> On 3/11/13 8:59 PM, Brian Kardell wrote:
>> Is it very difficult to provide "here is an attribute I'm watching + a
>> callback"?
> It's not super-difficult but it adds more complication to
already-complicated code....
> One big question is whether in practice the attribute that will be
changing is one that the consumer cares about or not.  If it's the former,
it makes somewhat more sense to put the checking of which attribute in the
> -Boris

Daniel can confirm but in all of the stuff i have seen and played with so
far it is...you want a changing a component attribute to have some effect.
Internally you would use mutation observers i think.
Received on Tuesday, 12 March 2013 01:08:54 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:59 UTC