Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 06d5f94d0460582ad7e34fbf121f93b4ed2e39cf https://github.com/WebKit/WebKit/commit/06d5f94d0460582ad7e34fbf121f93b4ed2e39cf Author: Ryosuke Niwa <rn...@webkit.org> Date: 2025-03-05 (Wed, 05 Mar 2025)
Changed paths: M LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Construct.tentative.html M LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/CustomElementRegistry-initialize.tentative-expected.txt M LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/CustomElementRegistry-initialize.tentative.html M LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/CustomElementRegistry-upgrade.tentative.html M LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Document-createElement.tentative.html M LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Document-createElementNS.tentative.html A LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Document-customElementRegistry-expected.txt A LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Document-customElementRegistry.html M LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Document-importNode.tentative-expected.txt M LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Document-importNode.tentative.html A LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Element-customElementRegistry-exceptions.tentative-expected.txt A LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Element-customElementRegistry-exceptions.tentative.html A LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Element-customElementRegistry.tentative-expected.txt A LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Element-customElementRegistry.tentative.html R LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Element-customElements-exceptions.tentative-expected.txt R LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Element-customElements-exceptions.tentative.html R LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Element-customElements.tentative-expected.txt R LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Element-customElements.tentative.html M LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Element-innerHTML.tentative.html A LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/ShadowRoot-init-customElementRegistry.tentative-expected.txt A LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/ShadowRoot-init-customElementRegistry.tentative.html R LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/ShadowRoot-init-customElements.tentative-expected.txt R LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/ShadowRoot-init-customElements.tentative.html M LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/ShadowRoot-innerHTML.tentative.html R LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/polymer-polyfill-regression.tentative-expected.txt R LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/polymer-polyfill-regression.tentative.html M LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/template.tentative.window-expected.txt M LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/template.tentative.window.js M Source/WebCore/dom/Document.cpp M Source/WebCore/dom/Document.h M Source/WebCore/dom/Document.idl M Source/WebCore/dom/Element.cpp M Source/WebCore/dom/Element.idl M Source/WebCore/dom/ElementCreationOptions.h M Source/WebCore/dom/ElementCreationOptions.idl M Source/WebCore/dom/ImportNodeOptions.h M Source/WebCore/dom/ImportNodeOptions.idl M Source/WebCore/dom/ShadowRoot.idl M Source/WebCore/dom/ShadowRootInit.h M Source/WebCore/dom/ShadowRootInit.idl M Source/WebCore/editing/MarkupAccumulator.cpp M Source/WebCore/html/HTMLAttributeNames.in M Source/WebCore/html/HTMLTemplateElement.idl M Source/WebCore/html/parser/HTMLConstructionSite.cpp Log Message: ----------- Rename ShadowRoot.prototype.customElements to ShadowRoot.prototype.customElementRegistry https://bugs.webkit.org/show_bug.cgi?id=289153 Reviewed by Anne van Kesteren. ShadowRoot.prototype.customElements, after all, isn't Web compatible so rename it to customElementRegistry. We also rename Element.prototype.customElements to customElementRegistry along with dictionary attribute expected in ElementCreationOptions, ImportNodeOptions, and ShadowRootInit. In addition, rename shadowrootcustomelements content attribute to shadowrootcustomelementregistry, and rename HTMLTemplateElement.prototype.shadowRootCustomElements to shadowRootCustomElementRegistry. Finally, introduce Document.prototype.customElementRegistry to mirror ShadowRoot.prototype.customElementRegistry. * LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Construct.tentative.html: * LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/CustomElementRegistry-initialize.tentative-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/CustomElementRegistry-initialize.tentative.html: * LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/CustomElementRegistry-upgrade.tentative.html: * LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Document-createElement.tentative.html: * LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Document-createElementNS.tentative.html: * LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Document-customElementRegistry-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Document-customElementRegistry.html: Added. * LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Document-importNode.tentative-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Document-importNode.tentative.html: * LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Element-customElementRegistry-exceptions.tentative-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Element-customElements-exceptions.tentative-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Element-customElementRegistry-exceptions.tentative.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Element-customElements-exceptions.tentative.html. * LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Element-customElementRegistry.tentative-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Element-customElementRegistry.tentative.html: Added. * LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Element-customElements.tentative-expected.txt: Removed. * LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Element-customElements.tentative.html: Removed. * LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/Element-innerHTML.tentative.html: * LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/ShadowRoot-init-customElementRegistry.tentative-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/ShadowRoot-init-customElements.tentative-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/ShadowRoot-init-customElementRegistry.tentative.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/ShadowRoot-init-customElements.tentative.html. * LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/ShadowRoot-innerHTML.tentative.html: * LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/polymer-polyfill-regression.tentative-expected.txt: Removed. * LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/polymer-polyfill-regression.tentative.html: Removed. * LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/template.tentative.window-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/custom-elements/revamped-scoped-registry/template.tentative.window.js: (test): * Source/WebCore/dom/Document.cpp: (WebCore::Document::createElementForBindings): (WebCore::Document::importNode): (WebCore::Document::customElementRegistryForBindings): (WebCore::Document::createElementNS): * Source/WebCore/dom/Document.h: * Source/WebCore/dom/Document.idl: * Source/WebCore/dom/Element.cpp: * Source/WebCore/dom/Element.idl: * Source/WebCore/dom/ElementCreationOptions.h: * Source/WebCore/dom/ElementCreationOptions.idl: * Source/WebCore/dom/ImportNodeOptions.h: * Source/WebCore/dom/ImportNodeOptions.idl: * Source/WebCore/dom/ShadowRoot.idl: * Source/WebCore/dom/ShadowRootInit.h: * Source/WebCore/dom/ShadowRootInit.idl: * Source/WebCore/editing/MarkupAccumulator.cpp: (WebCore::MarkupAccumulator::startAppendingNode): * Source/WebCore/html/HTMLAttributeNames.in: * Source/WebCore/html/HTMLTemplateElement.idl: * Source/WebCore/html/parser/HTMLConstructionSite.cpp: (WebCore::HTMLConstructionSite::insertHTMLTemplateElement): Canonical link: https://commits.webkit.org/291627@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes