What is the difference between the two events DOMNodeInserted and DOMNodeInsertedIntoDocument?
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
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.
DOMNodeInserted event gets
21 January, 2008 - 15:26 — SenakaDOMNodeInserted 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
30 January, 2008 - 23:51 — SergeyIn 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.