summaryrefslogtreecommitdiffstats
path: root/layout/reftests/webcomponents/remove-append-shadow-host-1.html
blob: 85161565e08ef2b0748d15cddc3244026015105d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<html>
  <head>
  </head>
  <body>
    <div id="container"><div id="host"></div></div>
    <script>
      var host = document.getElementById("host");
      var root = host.createShadowRoot();
      root.innerHTML = 'inside shadow DOM';

      var container = document.getElementById("container");
      container.removeChild(host);
      container.appendChild(host);
    </script>
  </body>
</html>