W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2015

Re: Custom Elements: insert/remove callbacks

From: Anne van Kesteren <annevk@annevk.nl>
Date: Sat, 9 May 2015 18:40:58 +0200
Message-ID: <CADnb78gVOMPuk7uCwRs2oDZspsi_Ds4f9Fg1pQWGQU4uDmciVg@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: Elliott Sprehn <esprehn@chromium.org>, WebApps WG <public-webapps@w3.org>
On Fri, May 8, 2015 at 2:50 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 5/8/15 1:42 AM, Elliott Sprehn wrote:
>> That actually seems pretty similar to what we have, ours is in the form
>> of:
>> Node#insertedInto(Node insertionPoint)
>> Node#removedFrom(Node insertionPoint)
> To be clear, ours is also in the form of two methods
> (BindToTree/UnbindFromTree) that take various arguments.

The DOM only has insert/remove hooks:


So that seems clearly wrong (in the specification)... Are descendants
notified in tree order?

I filed https://github.com/whatwg/dom/issues/34 to track this.

Received on Saturday, 9 May 2015 16:41:21 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:27:31 UTC