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

Update template element description and add shadowrootmode attribute #31490

Merged
merged 18 commits into from
Jan 25, 2024

Conversation

pepelsbey
Copy link
Member

@pepelsbey pepelsbey commented Jan 3, 2024

Description

Declarative shadow DOM reuses the <template> element for generating shadow root in the presence of the shadowrootmode attribute. This element is no longer for templating only, that needs to be reflected, too.

Motivation

To support existing implementations in Chrome and Safari and prepare for the upcoming Firefox support.

Related issues and pull requests

@github-actions github-actions bot added the Content:HTML Hypertext Markup Language docs label Jan 3, 2024
Copy link
Contributor

github-actions bot commented Jan 3, 2024

Preview URLs

External URLs (1)

URL: /en-US/docs/Web/HTML/Element/template
Title: <template>: The Content Template element

(comment last updated: 2024-01-25 10:30:31)

@pepelsbey pepelsbey marked this pull request as ready for review January 10, 2024 10:54
@pepelsbey pepelsbey requested a review from a team as a code owner January 10, 2024 10:54
@pepelsbey pepelsbey requested review from chrisdavidmills and removed request for a team January 10, 2024 10:54
@bsmth bsmth added this to the FF122: Jan 23rd milestone Jan 12, 2024
@pepelsbey pepelsbey requested review from dipikabh and bsmth and removed request for chrisdavidmills January 12, 2024 13:34
@github-actions github-actions bot added the size/l [PR only] 501-1000 LoC changed label Jan 17, 2024
Copy link
Contributor

@dipikabh dipikabh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for these updates, @pepelsbey!
I've done primarily an edit review and added some suggestions :)

files/en-us/web/html/element/template/index.md Outdated Show resolved Hide resolved
files/en-us/web/html/element/template/index.md Outdated Show resolved Hide resolved
files/en-us/web/html/element/template/index.md Outdated Show resolved Hide resolved
files/en-us/web/html/element/template/index.md Outdated Show resolved Hide resolved
files/en-us/web/html/element/template/index.md Outdated Show resolved Hide resolved
files/en-us/web/html/element/template/index.md Outdated Show resolved Hide resolved
files/en-us/web/html/element/template/index.md Outdated Show resolved Hide resolved
files/en-us/web/html/element/template/index.md Outdated Show resolved Hide resolved
files/en-us/web/html/element/template/index.md Outdated Show resolved Hide resolved
@pepelsbey
Copy link
Member Author

@dipikabh thank you for the great suggestions! I applied them all :)

@pepelsbey pepelsbey requested a review from dipikabh January 19, 2024 09:50
Copy link
Contributor

@dipikabh dipikabh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates, @pepelsbey!

I have a few more suggestions.

files/en-us/web/html/element/template/index.md Outdated Show resolved Hide resolved
files/en-us/web/html/element/template/index.md Outdated Show resolved Hide resolved
Co-authored-by: Dipika Bhattacharya <[email protected]>
pepelsbey and others added 2 commits January 24, 2024 17:43
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@pepelsbey pepelsbey requested a review from dipikabh January 24, 2024 16:53
@bsmth bsmth removed their request for review January 24, 2024 18:44
Copy link
Contributor

@dipikabh dipikabh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @pepelsbey for all the updates! 👍

@dipikabh dipikabh merged commit 1e518c1 into mdn:main Jan 25, 2024
8 checks passed
@pepelsbey pepelsbey deleted the shadowrootmode branch January 25, 2024 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:HTML Hypertext Markup Language docs size/l [PR only] 501-1000 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants