Re: Custom Elements: insert/remove callbacks

On Fri, May 8, 2015 at 7:42 AM, Elliott Sprehn <esprehn@chromium.org> wrote:
> That actually seems pretty similar to what we have, ours is in the form of:
>
> Node#insertedInto(Node insertionPoint)
> Node#removedFrom(Node insertionPoint)
>
> where insertionPoint is the ancestor in the tree where a connection was
> added or removed which may be arbitrarily far up the ancestor chain. From
> that you can figure out all the cases Boris is describing.

Cool. So maybe the DOM specification needs to be updated to have that
model and we should expose that as low-level hook to web developers.


-- 
https://annevankesteren.nl/

Received on Friday, 8 May 2015 05:45:06 UTC