You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since Declarative Shadow DOM is not supported in all browsers, a polyfill is required otherwise using Declarative Shadow DOM (SSR or data-gwd-opt="static") will not work in Safari or Firefox currently. See AnalogStudiosRI/www.tuesdaystunes.tv#4 for an example
Chrome (expected)
Firefox / Safari (no content)
Details
Effectively it would just be as simple as adding a polyfills flag that adds a conditional check around the polyfill here. This needs to come at the end of document before the </body> tag.
What is interesting though, is shouldn't as much of the static HTML still show up anyway? I know it is wrapped in <template> tags but shouldn't the "valid" markup like <h1>, <img> etc still show up anyway?
In retrospect, I think this might be better implemented in our standard polyfills plugin since for an upcoming native Greenwood solution for HTMLElement, which will also need Declarative Shadow DOM, it doesn't really make sense to make it exclusive to a particular library.
thescientist13
changed the title
add Declarative Shadow DOM polyfill support for Lit Renderer plugin
add Declarative Shadow DOM polyfill support to polyfills plugin
Jun 17, 2022
thescientist13
changed the title
add Declarative Shadow DOM polyfill support to polyfills plugin
add Declarative Shadow DOM polyfill support to polyfill plugin
Jul 2, 2022
Type of Change
Summary
Since Declarative Shadow DOM is not supported in all browsers, a polyfill is required otherwise using Declarative Shadow DOM (SSR or
data-gwd-opt="static"
) will not work in Safari or Firefox currently. See AnalogStudiosRI/www.tuesdaystunes.tv#4 for an exampleChrome (expected)
Firefox / Safari (no content)
Details
Effectively it would just be as simple as adding a polyfills flag that adds a conditional check around the polyfill here. This needs to come at the end of document before the
</body>
tag.What is interesting though, is shouldn't as much of the static HTML still show up anyway? I know it is wrapped in
<template>
tags but shouldn't the "valid" markup like<h1>
,<img>
etc still show up anyway?The text was updated successfully, but these errors were encountered: