2 <script src=
"../../../resources/js-test.js"></script>
3 <div id=
"testDiv"></div>
5 description("Tests that setting Attr.value does not fire a DOMSubtreeModified event.");
7 var testDiv
= document
.getElementById("testDiv");
8 var wasDOMSubtreeModifiedFired
= false;
9 testDiv
.attributes
[0].addEventListener("DOMSubtreeModified", function() {
10 wasDOMSubtreeModifiedFired
= true;
13 shouldBeFalse("wasDOMSubtreeModifiedFired");
14 testDiv
.attributes
[0].value
= "testDiv2";
15 shouldBeFalse("wasDOMSubtreeModifiedFired");