This repository has been archived by the owner on Nov 11, 2019. It is now read-only.
Mutation Observer not creating mutations for nodes added through innerHTML #166
Labels
Milestone
Adding internal nodes through innerHTML does not cause an addedNode in the mutation record for the internal node. For example: Let's suppose if we have a div element and have a Mutation Observer running observing the document
This would lead to just one addedNode in the mutation having "div" as the addedNode and "img" as one of the childNodes. But, there is no separate addedNode for "img" node added.
It just logs one addedNode in the mutation for the "second" div, though the HTML structure for both "first" and "second" div is same.
The text was updated successfully, but these errors were encountered: