5 return external.ok(b, m);
8 function test_removeAttribute(e) {
9 ok(e.removeAttribute('nonexisting') === false, "removeAttribute('nonexisting') didn't return false");
12 ok(e.removeAttribute('title') === true, "removeAttribute('title') didn't return true");
13 ok(e.title === "", "e.title = " + e.title);
14 ok(("title" in e) === true, "title is not in e");
17 ok(e.removeAttribute('myattr') === true, "removeAttribute('myattr') didn't return true");
18 ok(e["myattr"] === undefined, "e['myattr'] = " + e['myattr']);
19 ok(("myattr" in e) === false, "myattr is in e");
25 ok(obj === window.obj, "obj !== window.obj");
27 ok(typeof(divid) === "object", "typeof(divid) = " + typeof(divid));
29 test_removeAttribute(document.getElementById("divid"));
30 test_removeAttribute(document.body);
32 external.reportSuccess();
35 <body onload="runTest();">
36 <div id="divid"></div>