summaryrefslogtreecommitdiff
path: root/devtools/client/inspector
diff options
context:
space:
mode:
authorFranklinDM <mrmineshafter17@gmail.com>2023-03-04 00:32:21 +0800
committerFranklinDM <mrmineshafter17@gmail.com>2023-03-04 21:32:12 +0800
commit00c570d27bd89f61d6d93e0bd099d9ab02b3a320 (patch)
tree432b4846a09cd4e3ce23cc163068093ede4f4ff3 /devtools/client/inspector
parent2fbefbbc584d9380e5b1987a617bc916d29e1a57 (diff)
downloaduxp-00c570d27bd89f61d6d93e0bd099d9ab02b3a320.tar.gz
Issue #2135 - Bug 1453789: Remove Element.createShadowRoot
Diffstat (limited to 'devtools/client/inspector')
-rw-r--r--devtools/client/inspector/markup/test/doc_markup_anonymous.html6
1 files changed, 2 insertions, 4 deletions
diff --git a/devtools/client/inspector/markup/test/doc_markup_anonymous.html b/devtools/client/inspector/markup/test/doc_markup_anonymous.html
index 0ede3ca5ff..bb5389cbe6 100644
--- a/devtools/client/inspector/markup/test/doc_markup_anonymous.html
+++ b/devtools/client/inspector/markup/test/doc_markup_anonymous.html
@@ -25,10 +25,8 @@
<script>
"use strict";
var host = document.querySelector("#shadow");
- if (host.createShadowRoot) {
- var root = host.createShadowRoot();
- root.innerHTML = "<h3>Shadow DOM</h3><select multiple></select>";
- }
+ var root = host.attachShadow({ mode: "open" });
+ root.innerHTML = "<h3>Shadow DOM</h3><select multiple></select>";
</script>
</body>
</html> \ No newline at end of file