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

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

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

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