Head's Up: JavaScript is either turned off or not working properly in your browser. Some parts of this page may not work properly.
customElements.define( "my-widget", class extends HTMLElement { constructor() { super(); let template = document.getElementById("my-template"); let templateContent = template.content; const shadowRoot = this.attachShadow({ mode: "open" }); shadowRoot.appendChild(templateContent.cloneNode(true)); } }, );