3 <div id=
"div" name=
"divname" item=
"canoveride"></div>
6 if (window
.testRunner
) {
7 testRunner
.dumpAsText();
10 var myDiv
= document
.getElementById("div");
11 var attribute
= myDiv
.attributes
["name"];
12 if (attribute
!= "[object Attr]") {
13 document
.writeln('ERROR: attributes["name"] should be an attribute object: ' + attribute
);
17 attribute
= myDiv
.attributes
["item"];
18 if (attribute
.value
) {
19 document
.writeln('ERROR: attributes["item"].value : ' + attribute
.value
);
24 document
.writeln("Success");