DOMNodeInserted vs. DOMNodeInsertedIntoDocument

What is the difference between the two events DOMNodeInserted and DOMNodeInsertedIntoDocument?

DOMNodeInserted event gets

DOMNodeInserted event gets fired when a node has been added as a child of another node.

DOMNodeInsertedIntoDocument event fires when a node is being inserted into a document(on construct).

Hope this helps,

-Senaka

DOMNodeInserted vs. DOMNodeInsertedIntoDocument

In other words:
DOMNodeInserted is fired every time the node gets moved within same document, this event bubbles.
DOMNodeInsertedIntoDocument is fired only once - the first time element enteres document, this event doesn't bubble.