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
DCE standard proposal is not yet shaped and what is on proposal is far from Declarative Web Application which should be functional without JavaScript.
<shadow-dom-element> has all means for defining the DCE except of tag name.
Proposed syntax
<shadow-dom-elementtag="my-component" code="template.html" ></shadow-dom-element><my-component>rendered by <bslot="link-title">template.html</b></my-component>
Note that src attribute and payload is missing which along with assigned tag would omit the inline UI generation and instead declare custom element. In given sample both lines would produce same DOM:
DCE standard proposal is not yet shaped and what is on proposal is far from Declarative Web Application which should be functional without JavaScript.
<shadow-dom-element>
has all means for defining the DCE except of tag name.Proposed syntax
Note that
src
attribute and payload is missing which along with assignedtag
would omit the inline UI generation and instead declare custom element. In given sample both lines would produce same DOM:inline payload
When both payload (via
src
or DOM) andtag
is provided, the component would be rendered inline as a tag.light-dom-element
would inherit this behavior enabling DCE without shadow root
Links
The text was updated successfully, but these errors were encountered: