I know that MutationObserver()
is designed to detect changes in the HTML DOM.
But I wonder how this works in practice.
We created a hypothetical situation, what's up?
There is a <div>
with id='hipotese'
(I believe it will be observed by its id
, correct?)
It is <div>
has several other contents inside it, which are generated dynamically. (we do not have control of the amount of content generated within it)
What happens is that there are several methods that act on these dynamic content. (receive various parameters from these contents)
In Google Chrome we can tighten the F12 and leave changing the attributes of this content in any way we want.
- End of hypothetical situation -
How can I observe and detect the smallest and simplest change in these elements present in our <div id='hipotese'>
?
Is there any other way to detect this change?
I know that the user can disable JavaScript
, but nothing that can not be resolved with <noscript>