Skip to content
This repository was archived by the owner on Sep 20, 2019. It is now read-only.
This repository was archived by the owner on Sep 20, 2019. It is now read-only.

Wrong order of detached, and mutation callbacks execution #491

@tomalec

Description

@tomalec

It seems that Mutation Observer callbacks are executed in wrong order, and what is worse in the wrong moment regarding detachedCallback.
In FF and IE, If I detach element, then append/remove child element, mutation callback is executed before detached one:

myEl.parentElement.removeChild(myEl);
myEl.removeChild(myEl.firstElementChild);

Then, even tough I .disconnected observer at detachedCallback, mutation callback is executed.

http://jsbin.com/cuqeti/edit?html,console,output

In Chrome it works as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions