Add ShadowRoot::clonable
Categories
(Core :: DOM: Core & HTML, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox122 | --- | fixed |
People
(Reporter: saschanaz, Assigned: saschanaz)
References
()
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
A corresponding attribute for ShadowRootInit::clonable.
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 1•2 years ago
|
||
Depends on D193677
| Assignee | ||
Updated•2 years ago
|
Comment 4•2 years ago
|
||
| bugherder | ||
Comment 6•2 years ago
|
||
Hey! I’m currently documenting this addition in BCD, MDN, and release notes. As far as I understand, it’s Nightly only and won’t be shipped in Firefox 122 by default. Did I get it right?
Also, I tried to test it in the current Firefox Nightly 123, but I got false in the console:
const host = document.createElement('div');
const shadowRoot = host.attachShadow({mode: 'open', cloneable: true});
shadowRoot.cloneable;
In Safari TP 186 I get true.
| Assignee | ||
Comment 7•2 years ago
|
||
(In reply to Vadim Makeev from comment #6)
Hey! I’m currently documenting this addition in BCD, MDN, and release notes. As far as I understand, it’s Nightly only and won’t be shipped in Firefox 122 by default. Did I get it right?
Yes, it's currently Nightly only. Bug 1870052 will enable it on all channels later.
Also, I tried to test it in the current Firefox Nightly 123, but I got
falsein the console:const host = document.createElement('div'); const shadowRoot = host.attachShadow({mode: 'open', cloneable: true}); shadowRoot.cloneable;In Safari TP 186 I get
true.
Hi, it's because it's not cloneable but clonable (see there's no e before able). Looks like Safari has some typo? I filed https://bugs.webkit.org/show_bug.cgi?id=267634.
Comment 8•2 years ago
|
||
Oh my, English is hard! I’m glad we did it right as clonable per spec. I’ll make sure there are no cloneable in MDN :)
Updated•2 years ago
|
Description
•