summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/dom/getElementsByClassName/003.html
blob: 661dbba69db06260dde6f2eba9a37b7f63879312 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!doctype html>
<html class="a">
 <head>
  <title>document.getElementsByClassName(): changing classes</title>
  <script src="resources/common.js"></script>
 </head>
 <body class="a">
  <p id="r">FAIL (script did not run)</p>
  <script>
   var collection = document.getElementsByClassName("a")
   document.body.className = "b"
   t(collection, [document.documentElement])
  </script>
 </body>
</html>