Skip to content

Commit

Permalink
Firefox122: Add clonable attribute to ShadowRoot (#21948)
Browse files Browse the repository at this point in the history
* Add clonable attribute to ShadowRoot

* Roll back preview for now

* Add Element’s clonable parameter

* Apply suggestions from code review

Co-authored-by: Florian Scholz <[email protected]>

* Please linter

---------

Co-authored-by: Florian Scholz <[email protected]>
  • Loading branch information
pepelsbey and Elchi3 authored Jan 24, 2024
1 parent f20e158 commit d322e17
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 0 deletions.
35 changes: 35 additions & 0 deletions api/Element.json
Original file line number Diff line number Diff line change
Expand Up @@ -2624,6 +2624,41 @@
"deprecated": false
}
},
"init_clonable_parameter": {
"__compat": {
"description": "<code>init.clonable</code> parameter",
"spec_url": "https://dom.spec.whatwg.org/#dom-shadowrootinit-clonable",
"support": {
"chrome": {
"version_added": false
},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": "preview"
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"alternative_name": "cloneable",
"version_added": "16.4"
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"init_delegatesFocus_parameter": {
"__compat": {
"description": "<code>init.delegatesFocus</code> parameter",
Expand Down
38 changes: 38 additions & 0 deletions api/ShadowRoot.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,44 @@
}
}
},
"clonable": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/ShadowRoot/clonable",
"spec_url": "https://dom.spec.whatwg.org/#dom-shadowroot-clonable",
"tags": [
"web-features:shadow-dom"
],
"support": {
"chrome": {
"version_added": false
},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": "preview"
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"alternative_name": "cloneable",
"version_added": "preview"
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"delegatesFocus": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/ShadowRoot/delegatesFocus",
Expand Down

0 comments on commit d322e17

Please sign in to comment.