summaryrefslogtreecommitdiffstats
path: root/layout/reftests/webcomponents/update-dist-node-descendants-1.html
blob: 003c233944e0d64537fb770d604aed648bcb842d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE HTML>
<html class="reftest-wait">
<head>
</head>
<body>
<div id="outer"><span id="distnode">text</span></div>
<script>

  var shadowRoot = document.getElementById('outer').attachShadow({mode: 'open'});
  shadowRoot.innerHTML = '<div><slot></slot></div>';

  function tweak() {
    var distNode = document.getElementById("distnode");
    distNode.textContent = "Hello World";

    document.documentElement.removeAttribute("class");
	}

  window.addEventListener("MozReftestInvalidate", tweak);
</script>
</body>
</html>