class PuppygirlHost extends HTMLElement { constructor() { super() } connectedCallback() { const templateName = this.getAttribute('template') const template = document.getElementById(templateName) const content = template.content const shadow = this.attachShadow({ mode: 'open' }) shadow.appendChild(content.cloneNode(true)) } } customElements.define("pg-host", PuppygirlDomme)