Mutation Observer Not Detecting Text Change
It’s because textContent triggers a different change than innerHTML, and your observer configuration is not configured to observe the changes made by textContent. textContent changes the child text node of the target. According to MDN setting textContent: Setting this property on a node removes all of its children and replaces them with a single text … Read more