4 <title>document.getElementsByClassName(): adding element with class
</title>
5 <script src=
"resources/common.js"></script>
8 <p id=
"r">FAIL (script did not run)
</p>
10 var collection
= document
.getElementsByClassName("a"),
11 ele
= document
.createElement("foo");
12 ele
.setAttribute("class", "a");
13 document
.body
.appendChild(ele
)
14 t(collection
, [document
.body
, ele
])