Re: [w3c/webcomponents] A proposal to help with testing/SEO/accessibility of closed ShadowDOM (#505)

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