summaryrefslogtreecommitdiffstats
path: root/layout/reftests/webcomponents/remove-append-shadow-host-1.html
blob: 1a752eba6ca3a16f2a83c2ea567071642fdbbd92 (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.attachShadow({mode: 'open'});
      root.innerHTML = 'inside shadow DOM';

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