https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 83f41fa104eaf113509fffb10504b9afcba5b7e8 authored by Simon Pieters on 18 August 2016, 21:50:33 UTC
innerText setter should replace existing text node
Tip revision: 83f41fa
getElementsByClassName-03.htm
<!doctype html>
<html class="a">
 <head>
  <title>document.getElementsByClassName(): changing classes</title>
  <script src="/resources/testharness.js"></script>
  <script src="/resources/testharnessreport.js"></script>
 </head>
 <body class="a">
  <div id="log"></div>
  <script>
   test(function() {
          var collection = document.getElementsByClassName("a")
          document.body.className = "b"
          assert_array_equals(collection, [document.documentElement])
        })
  </script>
 </body>
</html>
back to top