1. このページの目的
Mutation Observer Test を理解する。
2. Mutation Observer とは?
The
MutationObserverinterface provides the ability to watch for changes being made to the DOM tree. It is designed as a replacement for the olderMutation Eventsfeature which was part of the DOM3 Events specification.
あくまでも DOMの要素が観察対象になります。
※ mutation (n.) 変化
3. デモ
このページを開いたときに、MutationObserver の observe() が開始されます。
ブラウザのコンソールを開いて、以下のボタンを押します。
4. ソースコード
このページのソースコードを見てください