4 https://bugzilla.mozilla.org/show_bug.cgi?id=199959
7 <title>Test for Bug
199959</title>
8 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
12 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=199959">Mozilla Bug
199959</a>
14 <div id=
"content" style=
"display: none">
17 <div id=
"attrTest" testAttr=
"testValue"></div>
19 <script class=
"testbody" type=
"text/javascript">
21 /** Test for Bug
199959 **/
24 var attrTest = document.getElementById(
"attrTest");
25 var attr = attrTest.getAttributeNode(
"testAttr");
26 ok(attr.specified,
"Attribute isn't specified!");
27 attrTest.removeAttributeNode(attr);
28 ok(attr.specified,
"Attribute isn't specified after removal!");
31 attr = document.createAttribute('foo');
32 ok(attr.specified,
"Attribute isn't specified!");