Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1cc7b9f63d58412a3a05fcdc9620880677c55fb5
      
https://github.com/WebKit/WebKit/commit/1cc7b9f63d58412a3a05fcdc9620880677c55fb5
  Author: Luke Warlow <[email protected]>
  Date:   2026-07-28 (Tue, 28 Jul 2026)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/custom-element-move-reactions-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/custom-element-move-reactions.html
    M Source/WebCore/dom/ContainerNode.cpp

  Log Message:
  -----------
  moveBefore() doesn't iterate through shadow roots
https://bugs.webkit.org/show_bug.cgi?id=320096

Reviewed by Ryosuke Niwa.

This updates the node traversal in moveBefore() to recurse into shadow roots, 
and
updates a test to cover the scenario of a shadowroot inside the moved container.

* 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/custom-element-move-reactions-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/custom-element-move-reactions.html:
* Source/WebCore/dom/ContainerNode.cpp:
(WebCore::runMovingStepsForShadowIncludingInclusiveDescendants):
(WebCore::ContainerNode::moveBefore):

Canonical link: https://commits.webkit.org/318094@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to