Number Of Nodes Returned In Mutationrecord.addednodes Nodelist (mutationobserver)
MutationRecord.addedNodes returns NodeList with nodes detected as added in my document. When I use obj.appendChild() method, mutationObserver detects it and returns this ONE node i
Solution 1:
Judging by the spec one appendChild
corresponds to a single-node addedNodes
array.
addedNodes
usually contains many nodes during the initial page load and, naturally, if many nodes were inserted by js code in one operation via insertAdjacentHTML
, or document.write
, or .innerHTML
, or .outerHTML
, or DocumentFragment with many nodes.
Post a Comment for "Number Of Nodes Returned In Mutationrecord.addednodes Nodelist (mutationobserver)"