Follow us on Google+ : plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
I might be missing something, but I don't think this has anything to do with Shadow DOM. It's more about Custom Elements, right? To interpret the custom element, the crawler had to either understand polymer-element, or run the associated JavaScript code to register the custom element. If the crawler can get far enough to instantiate the custom element (and possibly create the Shadow DOM if the custom element has one), then it can easily discover and traverse into a Shadow DOM via DOM APIs.
On Thu, Aug 15, 2013 at 11:52 AM, John Messerly <jmes...@google.com> wrote:
I might be missing something, but I don't think this has anything to do with Shadow DOM. It's more about Custom Elements, right? To interpret the custom element, the crawler had to either understand polymer-element, or run the associated JavaScript code to register the custom element. If the crawler can get far enough to instantiate the custom element (and possibly create the Shadow DOM if the custom element has one), then it can easily discover and traverse into a Shadow DOM via DOM APIs.My question is about both custom elements and Shadow DOM, really. And you're right, the first-order question is, are crawlers smart enough to run the JS to register and run the custom elements? But let's pretend they are running the JS on the page; since the contents of the custom element live in the shadow DOM for the custom element, should crawlers go in there?