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
The slot with same name in the HTML 5 TEMPLATE is not supported by current browser implementations which blocks several use cases essential for declarative HTML programming. It is also a blocker for declarative web application concept.
Use Cases
Templates often are used for content which could have repeated value from the same data section. The person name in email template is a perfect sample where the person name used in "to" and "letter text" section. This case is easily implemented in various templated engines like handlebars, Lit, or React, but not by TEMPLATE + SLOT tags.
In static site templates the slot can be used to define the URL root for multiple DOM elements. For example, the link and image.
Goals
add the support of multiple slots with same name into HTML 5 standard
provide test cases and polyfill.
file the feature request in chromium, FF, etc.
Non-goals (Optional)
propagation of slots into attribute, will be addressed in separate proposal.
Proposed Solution
Without being too prescriptive, articulate a specific way (procedurally, algorithmically, declaratively) that a new or current web technology solves an existing problem or challenge.
Introduction
The slot with same name in the HTML 5 TEMPLATE is not supported by current browser implementations which blocks several use cases essential for declarative HTML programming. It is also a blocker for declarative web application concept.
Use Cases
Templates often are used for content which could have repeated value from the same data section. The person name in email template is a perfect sample where the person name used in "to" and "letter text" section. This case is easily implemented in various templated engines like handlebars, Lit, or React, but not by TEMPLATE + SLOT tags.
In static site templates the slot can be used to define the URL root for multiple DOM elements. For example, the link and image.
Goals
Non-goals (Optional)
Proposed Solution
Without being too prescriptive, articulate a specific way (procedurally, algorithmically, declaratively) that a new or current web technology solves an existing problem or challenge.
assignedSlots
as complimentary to Element.assignedSlotExamples (Recommended)
Live example: https://jsfiddle.net/suns2015/g0ukh81t
Alternate Approaches (Optional)
Not available.
Privacy & Security Considerations
N/A
Let’s Discuss
Declarative Web Application
The text was updated successfully, but these errors were encountered: