Issue #2135 - Bug 1453789: Remove Element.createShadowRoot

This commit is contained in:
FranklinDM 2023-03-04 00:32:21 +08:00 committed by roytam1
commit 45c179d01b
19 changed files with 25 additions and 521 deletions

View file

@ -21,8 +21,8 @@
// Set up a basic shadow DOM
var host = document.querySelector('#shadow');
if (host.createShadowRoot) {
var root = host.createShadowRoot();
if (host.attachShadow) {
let root = host.attachShadow({ mode: "open" });
root.innerHTML = '<h3>Shadow <em>DOM</em></h3><select multiple></select>';
}