Rule Definition
This API is deprecated, noisy and slow
Remediation
Use MutationObserver.
Violation Code Sample
document.addEventListener('DOMNodeInserted', handler);
Fixed Code Sample
const mo = new MutationObserver(muts => { /* handle */ });
mo.observe(document.body, { childList: true, subtree: true });
Reference
https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent
Related Technologies
Technical Criterion
CWE-710 - Improper Adherence to Coding Standards [Pillar]
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.