[webkit-changes] [WebKit/WebKit] dd0a5a: document.adoptNode is a no-op when called on a tem...

Ryosuke Niwa noreply at github.com
Fri Mar 10 00:30:22 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: dd0a5a2fd2e26b769586bbdf85fa2867036c0cfc
      https://github.com/WebKit/WebKit/commit/dd0a5a2fd2e26b769586bbdf85fa2867036c0cfc
  Author: Ryosuke Niwa <rniwa at webkit.org>
  Date:   2023-03-10 (Fri, 10 Mar 2023)

  Changed paths:
    M LayoutTests/imported/w3c/web-platform-tests/dom/nodes/adoption.window-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-content-hierarcy-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/html/syntax/serializing-html-fragments/template-expected.txt
    M Source/WebCore/dom/ContainerNode.cpp
    M Source/WebCore/dom/Document.cpp

  Log Message:
  -----------
  document.adoptNode is a no-op when called on a template element's document fragment
https://bugs.webkit.org/show_bug.cgi?id=246899

Reviewed by Chris Dumez.

Partially revert 252098 at main as this change turned out to be not web compatible.

* LayoutTests/imported/w3c/web-platform-tests/dom/nodes/adoption.window-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-content-hierarcy-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/serializing-html-fragments/template-expected.txt:
* Source/WebCore/dom/ContainerNode.cpp:
(WebCore::containsIncludingHostElements):
* Source/WebCore/dom/Document.cpp:
(WebCore::Document::adoptNode):

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




More information about the webkit-changes mailing list