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

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.

- R. Niwa

Received on Tuesday, 23 February 2016 04:27:11 UTC