Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 78eef71291c83deedd9620cf3aa709dda414ad48
https://github.com/WebKit/WebKit/commit/78eef71291c83deedd9620cf3aa709dda414ad48
Author: Ryosuke Niwa <[email protected]>
Date: 2025-06-25 (Wed, 25 Jun 2025)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/custom-elements/registries/Element-innerHTML-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/custom-elements/registries/Element-innerHTML.html
M Source/WebCore/dom/DocumentFragment.cpp
M Source/WebCore/html/parser/HTMLConstructionSite.cpp
Log Message:
-----------
Setting innerHTML doesn't always use a scoped custom element registry
associated with the context object
https://bugs.webkit.org/show_bug.cgi?id=294956
Reviewed by Anne van Kesteren.
The bug was caused by
HTMLConstructionSite::createHTMLElementOrFindCustomElementInterface not
associating the newly created
element with the scoped custom element registry. This PR also fixes a bug in
DocumentFragment::parseHTML that fast HTML parser
ignores scoped custom element registry by disabling fast parser when registry
is not null.
*
LayoutTests/imported/w3c/web-platform-tests/custom-elements/registries/Element-innerHTML-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/custom-elements/registries/Element-innerHTML.html:
Synced as of
461b1b8ef3b0c998ab27ba57e85643f07a443096.
* Source/WebCore/dom/DocumentFragment.cpp:
(WebCore::DocumentFragment::parseHTML):
* Source/WebCore/html/parser/HTMLConstructionSite.cpp:
(WebCore::HTMLConstructionSite::createHTMLElementOrFindCustomElementInterface):
Canonical link: https://commits.webkit.org/296637@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes