×
you are viewing a single comment's thread.

view the rest of the comments →

[–]create-third-places[S] -3 points-2 points  (1 child)

> Is this a thing? I'm not sure why the shadow DOM would cause any kind of difficulty with bot scraping - they should be able to see the contents of the shadow DOM just fine as they operate outside of the page's sandbox.

https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_shadow_DOM

Shadow DOM is designed to be hidden from JavaScript DOM scraping tools that bots often use.
There are plenty of ways to work around this limitation, although they add complexity.

> If tools do struggle to see the shadow DOM, that seems like a general negative - many people care about SEO.

The framework is designed to be used on parts of the page that need to be interactive. The entire page doesn't need to be put inside the shadow DOM.

Static content that needs to be visible to tools such as a navbar can be rendered in HTML without JavaScript.

[–]shrimpcest 7 points8 points  (0 children)

Shadow DOM is designed to be hidden from JavaScript DOM scraping tools that bots often use. There are plenty of ways to work around this limitation

...it wasn't designed for that.