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

Re: [custom-elements] Invoking lifecycle callbacks before invoking author scripts

From: Anne van Kesteren <annevk@annevk.nl>
Date: Tue, 23 Feb 2016 10:16:22 +0100
Message-ID: <CADnb78gSjKBWudXOxVS6QzTgj1GNsxUJZ=eJ7=0+fJ9y=7WkEA@mail.gmail.com>
To: Ryosuke Niwa <rniwa@apple.com>
Cc: public-webapps WG <public-webapps@w3.org>
On Tue, Feb 23, 2016 at 5:26 AM, Ryosuke Niwa <rniwa@apple.com> wrote:
> Hi,
> We propose to change the lifecycle callback to be fired both before invoking author scripts (e.g. for dispatching events) and before returning to author scripts.
> Without this change, event listeners that call custom elements' methods would end up seeing inconsistent states during compound DOM operation such as Range.extractContents and editing operations, and we would like to avoid that as much as possible.

These are the events we wanted to try and delay to dispatch around the
same time lifecycle callbacks are supposed to be called?

Received on Tuesday, 23 February 2016 09:16:52 UTC

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