Home | History | Annotate | Download | only in getElementsByClassName
      1 <!doctype html>
      2 <html class="a">
      3  <head>
      4   <title>document.getElementsByClassName(): changing classes</title>
      5   <script src="resources/common.js"></script>
      6  </head>
      7  <body class="a">
      8   <p id="r">FAIL (script did not run)</p>
      9   <script>
     10    var collection = document.getElementsByClassName("a")
     11    document.body.className = "b"
     12    t(collection, [document.documentElement])
     13   </script>
     14  </body>
     15 </html>
     16