Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add shadowrootclonable attribute#22768

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Elchi3 merged 3 commits intomdn:mainfrompepelsbey:shadowrootclonable
Apr 8, 2024
Merged

Conversation

@pepelsbey
Copy link
Member

Summary

Adds

  • shadowrootclonable attribute
  • shadowRootClonable IDL attribute

for template element.

Test results and supporting details

Currently supported only in Chrome Canary, expected to ship in Chrome 124.

Quick test
<p>outer</p><div><templateshadowrootmode="open"shadowrootclonable><p>inner</p></template></div><script>constdiv=document.querySelector('div');constclone=div.cloneNode();document.body.appendChild(clone);</script>
cloned

SeeChrome Status

@github-actionsgithub-actionsbot added data:apiCompat data for Web APIs. https://developer.mozilla.org/docs/Web/API data:htmlCompat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML labelsApr 4, 2024
Copy link
Member

@Elchi3Elchi3 left a comment

Choose a reason for hiding this comment

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

Confirmed withhttps://mdn-bcd-collector.gooborg.com/tests/api/HTMLTemplateElement/shadowRootClonable in Chrome 124 beta, so we might as well put 124 here.

Co-authored-by: Florian Scholz <fs@florianscholz.com>
@pepelsbeypepelsbey requested a review fromElchi3April 8, 2024 12:26
Copy link
Member

@Elchi3Elchi3 left a comment

Choose a reason for hiding this comment

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

Thanks! 👍

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

Reviewers

@Elchi3Elchi3Elchi3 approved these changes

Assignees

No one assigned

Labels

data:apiCompat data for Web APIs. https://developer.mozilla.org/docs/Web/APIdata:htmlCompat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@pepelsbey@Elchi3

[8]ページ先頭

©2009-2025 Movatter.jp