diff options
author | FranklinDM <mrmineshafter17@gmail.com> | 2023-03-04 00:32:21 +0800 |
---|---|---|
committer | FranklinDM <mrmineshafter17@gmail.com> | 2023-03-04 21:32:12 +0800 |
commit | 00c570d27bd89f61d6d93e0bd099d9ab02b3a320 (patch) | |
tree | 432b4846a09cd4e3ce23cc163068093ede4f4ff3 /devtools/client/inspector | |
parent | 2fbefbbc584d9380e5b1987a617bc916d29e1a57 (diff) | |
download | uxp-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.html | 6 |
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 |