Using jQuery with shadow dom
问题 Here I have created elements with shadow dom. /* some preparing code */ this.createShadowRoot(); // creates shadow root, this refers to element Later in the code I would access the shadow dom that I have created. These work: this.shadowRoot.getElementById("...") this.shadowRoot.querySelector("...") However this does not: $("...", this.shadowRoot) Why is that? As a temporary solution t his works at the moment : $("...", this.shadowRoot.children) Is there a better/more elegant way to work with