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

Re: [webcomponents]: Invocation order of custom element readyCallback

From: Dimitri Glazkov <dglazkov@chromium.org>
Date: Fri, 22 Mar 2013 11:25:31 -0700
Message-ID: <CADh5Ky3g2-4SjPq3_zcH-Y8=sAkNiUbRhr-ra1h+LefMyoFLAg@mail.gmail.com>
To: Scott Miles <sjmiles@google.com>
Cc: Anne van Kesteren <annevk@annevk.nl>, Hajime Morrita <morrita@google.com>, public-webapps <public-webapps@w3.org>
On Fri, Mar 22, 2013 at 9:35 AM, Scott Miles <sjmiles@google.com> wrote:
> In our work, we adopt a composition rule that a node knows about it's own
> children and can have expectations of them, but can make no assumptions
> about it's parent or siblings. As a coding model we've found it to be
> deterministic enough to build sane constructions. For example, you can use
> methods/properties on your children, but should only fire events upward.
> Therefore, our polyfills have an invariant that custom elements are prepared
> bottom-up (i.e. my children are all upgraded before I am).

Intuitively, I agree with Scott. Which means that the callback queue
is LIFO, right?

Received on Friday, 22 March 2013 18:26:03 UTC

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