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

Ff125 shadowroot serializable #23088

Merged
merged 4 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 41 additions & 4 deletions api/Element.json
Original file line number Diff line number Diff line change
Expand Up @@ -2627,9 +2627,10 @@
"deprecated": false
}
},
"init_clonable_parameter": {
"options_clonable_parameter": {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note, changed these to options, because that is what the MDN docs use. I'd be OK with since these are "initialize the shadow root" but options is more common.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah options is more common. I suspect this comes from the IDL which uses init rather than options. 🤷

"__compat": {
"description": "<code>init.clonable</code> parameter",
"description": "<code>options.clonable</code> parameter",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Element/attachShadow#clonable",
"spec_url": "https://dom.spec.whatwg.org/#dom-shadowrootinit-clonable",
"support": {
"chrome": {
Expand Down Expand Up @@ -2667,9 +2668,10 @@
}
}
},
"init_delegatesFocus_parameter": {
"options_delegatesFocus_parameter": {
"__compat": {
"description": "<code>init.delegatesFocus</code> parameter",
"description": "<code>options.delegatesFocus</code> parameter",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Element/attachShadow#delegatesfocus",
"spec_url": "https://dom.spec.whatwg.org/#dom-shadowrootinit-delegatesfocus",
"support": {
"chrome": {
Expand Down Expand Up @@ -2700,6 +2702,41 @@
"deprecated": false
}
}
},
"options_serializable_parameter": {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is new one added in Chrome 125

"__compat": {
"description": "<code>options.serializable</code> parameter",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Element/attachShadow#serializable",
"spec_url": "https://dom.spec.whatwg.org/#dom-shadowrootinit-serializable",
"support": {
"chrome": {
"version_added": "125"
},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": false
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": true,
"standard_track": true,
"deprecated": false
}
}
}
},
"attributes": {
Expand Down
1 change: 1 addition & 0 deletions api/HTMLTemplateElement.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@
},
"shadowRootSerializable": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSerializable",
"spec_url": "https://html.spec.whatwg.org/multipage/scripting.html#dom-template-shadowrootserializable",
"support": {
"chrome": {
Expand Down
71 changes: 71 additions & 0 deletions html/elements/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
},
"shadowrootclonable": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/HTML/Element/template#shadowrootclonable",
"spec_url": "https://html.spec.whatwg.org/multipage/scripting.html#attr-template-shadowrootclonable",
"support": {
"chrome": {
"version_added": "124"
Expand Down Expand Up @@ -73,8 +75,43 @@
}
}
},
"shadowrootdelegatesfocus": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/HTML/Element/template#shadowrootdelegatesfocus",
"spec_url": "https://html.spec.whatwg.org/multipage/scripting.html#attr-template-shadowrootdelegatesfocus",
"support": {
"chrome": {
"version_added": "123"
},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": "123"
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"shadowrootmode": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/HTML/Element/template#shadowrootmode",
"spec_url": "https://html.spec.whatwg.org/multipage/scripting.html#attr-template-shadowrootmode",
"tags": [
"web-features:declarative-shadow-dom"
Expand Down Expand Up @@ -115,6 +152,40 @@
"deprecated": false
}
}
},
"shadowrootserializable": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/HTML/Element/template#shadowrootserializable",
"spec_url": "https://html.spec.whatwg.org/multipage/scripting.html#attr-template-shadowrootserializable",
"support": {
"chrome": {
"version_added": "125"
},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": false
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": true,
"standard_track": true,
"deprecated": false
}
}
}
}
}
Expand Down