summaryrefslogtreecommitdiffstats
path: root/layout/reftests/webcomponents/dynamic-insertion-point-distribution-2.html
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/webcomponents/dynamic-insertion-point-distribution-2.html')
-rw-r--r--layout/reftests/webcomponents/dynamic-insertion-point-distribution-2.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/layout/reftests/webcomponents/dynamic-insertion-point-distribution-2.html b/layout/reftests/webcomponents/dynamic-insertion-point-distribution-2.html
index 29a850e90..d753af09c 100644
--- a/layout/reftests/webcomponents/dynamic-insertion-point-distribution-2.html
+++ b/layout/reftests/webcomponents/dynamic-insertion-point-distribution-2.html
@@ -5,8 +5,10 @@
<body>
<div id="host"></div>
<script>
- var host = document.getElementById("host");
- var root = host.createShadowRoot();
+ var host, root;
+
+ host = document.getElementById("host");
+ root = host.attachShadow({mode: 'open'});
root.innerHTML = "<span>a</span>";
function tweak() {
@@ -20,7 +22,7 @@
document.documentElement.removeAttribute("class");
}
- window.addEventListener("MozReftestInvalidate", tweak, false);
+ window.addEventListener("MozReftestInvalidate", tweak);
</script>
</body>
</html>