- From: BronislavKlucka <notifications@github.com>
- Date: Wed, 25 May 2016 04:07:28 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc:
Received on Wednesday, 25 May 2016 11:07:55 UTC
Appearently it was not as obvious as I assumed
The intent is not to clone shadowRoot, but the content of the shadowRoot
<x-user>
#shadowRoot
<h1>Brona</h2>
<span>Czech Republic</span>
</x-user>
var docFrag = document.querySelector("x-user").cloneShadowDOM()
docFrag:
#DocumentFragment
<h1>Brona</h2>
<span>Czech Republic</span>
the copy is of the content of the shadowRoot, not the shadowRoot itself. No open, closed mode applies. This allows for content to be crawled for testing/SEO/accessibility purposes while leaving the original closed shadowRoot intact
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/505#issuecomment-221541805
Received on Wednesday, 25 May 2016 11:07:55 UTC