2 <html xmlns=
"http://www.w3.org/1999/xhtml">
4 https://bugzilla.mozilla.org/show_bug.cgi?id=364092
7 <title>Test for Bug
364092</title>
8 <!-- XHTML needs explicit script elements -->
9 <script type=
"text/javascript" src=
"../MochiKit/Base.js"></script>
10 <script type=
"text/javascript" src=
"../MochiKit/Iter.js"></script>
11 <script type=
"text/javascript" src=
"../MochiKit/DOM.js"></script>
12 <script type=
"text/javascript" src=
"../MochiKit/Style.js"></script>
13 <script type=
"text/javascript" src=
"SimpleTest/SimpleTest.js"></script>
14 <link rel=
"stylesheet" type=
"text/css" href=
"SimpleTest/test.css" />
17 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=364092">Mozilla Bug
364092</a>
19 <div id=
"content" style=
"display: none">
22 <div id=
"test1" foo=
"foo"/>
24 <script class=
"testbody" type=
"text/javascript">
25 /** Test for Bug
364092 **/
27 var test1 = document.getElementById(
"test1");
28 var attrNode = test1.getAttributeNode(
"foo");
29 function mutationHandler(aEvent) {
30 ok(attrNode.isSameNode(aEvent.relatedNode));
31 ok(!test1.hasAttribute(
"foo"));
35 test1.addEventListener(
"DOMAttrModified", mutationHandler, true);
36 test1.removeAttributeNode(attrNode);
37 test1.removeEventListener(
"DOMAttrModified", mutationHandler, true);