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

The shadowrootmode attribute on <template> is about to be standardized #29600

Closed
mfreed7 opened this issue Oct 11, 2023 · 4 comments
Closed

The shadowrootmode attribute on <template> is about to be standardized #29600

mfreed7 opened this issue Oct 11, 2023 · 4 comments
Labels
area: Web Components Content:HTML Hypertext Markup Language docs Content:WebAPI Web API docs

Comments

@mfreed7
Copy link

mfreed7 commented Oct 11, 2023

MDN URL

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template

What specific section or headline is this issue about?

Attributes

What information was incorrect, unhelpful, or incomplete?

See whatwg/html#5465 which is going to land soon. When it does, the shadowrootmode attribute on the <template> element will be standardized.

The MDN page here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template#attributes looks like this:

In Chromium-based browsers, the <template> element also supports a non-standard shadowrootmode attribute, as part of an experimental "Declarative Shadow DOM" proposal. In supporting browsers, a <template> element with the shadowrootmode attribute is detected by the HTML parser and immediately applied as the shadow root of its parent element. shadowrootmode can take a value of open or closed; these are equivalent to the open and closed values of the Element.attachShadow() mode option.

That should be updated to remove the "Chromium-based browsers" language, etc., and refer to the spec.

What did you expect to see?

See above.

Do you have any supporting links, references, or citations?

See above.

Do you have anything more you want to share?

No response

MDN metadata

Page report details
@mfreed7 mfreed7 added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Oct 11, 2023
@github-actions github-actions bot added Content:HTML Hypertext Markup Language docs Content:WebAPI Web API docs labels Oct 11, 2023
@Rumyra
Copy link
Collaborator

Rumyra commented Nov 16, 2023

Thanks for raising the issue @mfreed7 - do you have any browser implementation bugs?

@Rumyra Rumyra removed the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Nov 16, 2023
@mfreed7
Copy link
Author

mfreed7 commented Nov 16, 2023

Thanks for raising the issue @mfreed7 - do you have any browser implementation bugs?

Sure!

@pepelsbey
Copy link
Member

FYI, there’s a task documenting shadowrootmode attribute for the upcoming Firefox 122 release (behind the flag for now, but will be enabled by default in 123).

@pepelsbey
Copy link
Member

The shadowrootmode attribute has been properly documented in #31490

See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template#attributes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Web Components Content:HTML Hypertext Markup Language docs Content:WebAPI Web API docs
Projects
None yet
Development

No branches or pull requests

4 participants