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
HTML template in order to be complete should include the ability to pass slot value as tag attribute value or its part.
Blocker for declarative web application concept.
Use Cases
In static site there is a need to pass same value into several attributes and HTML elements. Often there is a root path common for the URLs. In the sample bellow
title is passed as alt attribute the image, as a title attribute in the link, and as h6 text.
the href attribute comprise the root-url and link-path slots.
the src attribute comprise the root-url and link-path slots.
Introduction
HTML template in order to be complete should include the ability to pass slot value as tag attribute value or its part.
Blocker for declarative web application concept.
Use Cases
In static site there is a need to pass same value into several attributes and HTML elements. Often there is a root path common for the URLs. In the sample bellow
alt
attribute the image, as atitle
attribute in the link, and as h6 text.href
attribute comprise theroot-url
andlink-path
slots.src
attribute comprise theroot-url
andlink-path
slots.Goals
A list of what this proposal must do in order to be considered successful.
name
of attribute in parent element.for
attribute in ATTRIBUTE tag to define the attribute in self-closing element which can not embed the ATTRIBUTE tag within.Non-goals
no need to change the slot logic itself.
Proposed Solution
Change HTML parser to permit ATTRIBUTE as a tag. Keep the same kind of reference to attributed element by
for
attribute as in LABEL tag.Alternate Approaches
The SLOT itself could have the
attribute
andfor
attributes and would serve the slot to element attribute propagation.This approach would not allow to define the part of attribute though.
Privacy & Security Considerations
N/A ?
The text was updated successfully, but these errors were encountered: