3 <script src=
"../../resources/js-test.js"></script>
5 description('DOMSubtreeModified should fire when attributes are added or removed, but not modified (see bug 81141)');
7 var div
= document
.createElement('div');
8 document
.body
.appendChild(div
);
10 div
.addEventListener('DOMSubtreeModified', function(evt
) {
11 shouldBeTrue('expected');
14 div
.setAttribute('foo', 'bar');
16 div
.setAttribute('foo', 'baz');
18 div
.removeAttribute('foo');
20 var attr
= document
.createAttribute('bar');
23 div
.setAttributeNode(attr
);
27 div
.removeAttributeNode(attr
);