So you’ve bound something that says “When something under this is modified, fire this function.”
The function then… modifies something underneath the trigger element.
Do we perhaps see why that might be a problem? ∞
Incidentally, “DOMSubtreeModified” is a Deprecated event.