4 var testElement
= document
.querySelector('#test');
6 testElement
.addEventListener('DOMSubtreeModified', function() { i
++; });
7 testElement
.textContent
= "new";
8 document
.body
.textContent
= (i
== 1) ? "PASS" : "FAIL: i=" + i
;
11 <div id=
"test">old
</div>