Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the "template" use case for hidden="" #4977

Open
zcorpan opened this issue Oct 7, 2019 · 0 comments
Open

Remove the "template" use case for hidden="" #4977

zcorpan opened this issue Oct 7, 2019 · 0 comments

Comments

@zcorpan
Copy link
Member

zcorpan commented Oct 7, 2019

Having thought a bit about #4904 I wonder if the "template" use case for hidden should be removed:

When specified on an element, it indicates that the element is not yet, or is no longer, directly relevant to the page's current state, or that it is being used to declare content to be reused by other parts of the page as opposed to being directly accessed by the user

https://html.spec.whatwg.org/multipage/interaction.html#the-hidden-attribute

This predates the template element. The template element is better suited to address this use case, for several reasons: hidden stuff is not inert, can fetch stuff, can submit forms, can execute scripts, can be rendered to the user if display is changed, document conformance requirements apply normally but in templates you usually want to have variable parts which quickly ends up violating document conformance requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants
@zcorpan and others