diff options
Diffstat (limited to 'layout/reftests/webcomponents/update-dist-node-descendants-1.html')
-rw-r--r-- | layout/reftests/webcomponents/update-dist-node-descendants-1.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/layout/reftests/webcomponents/update-dist-node-descendants-1.html b/layout/reftests/webcomponents/update-dist-node-descendants-1.html new file mode 100644 index 000000000..e2dd4ebb7 --- /dev/null +++ b/layout/reftests/webcomponents/update-dist-node-descendants-1.html @@ -0,0 +1,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> |