Web Components: How can I select a text node from a slot?
I can select the contents of the follow web component slot by targeting the <p>
element (querySelector('p')
).
I can select the contents of the follow web component slot by targeting the <p>
element (querySelector('p')
).