summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/dom/getElementsByClassName/013.html
blob: 7c8c23230fbce17f7db00fe632e302d99d42e7ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!doctype html>
<html class="a">
 <head>
  <title>element.getElementsByClassName(): adding an element</title>
  <script src="resources/common.js"></script>
 </head>
 <body class="a">
  <p id="r">FAIL (script did not run)</p>
  <script>
   var collection = document.body.getElementsByClassName("a"),
       ele = document.createElement("x-y-z")
   ele.className = "a"
   document.body.appendChild(ele) 
   t(collection, [ele])
  </script>
 </body>
</html>