From 1258d06f742058d281c9ee2464e8e7b54a636199 Mon Sep 17 00:00:00 2001 From: Luke Date: Sun, 16 May 2021 19:18:40 +0100 Subject: [PATCH] LibWeb: Fix "adopt" => "adopt_ref" change in adoptNode exceptions This was accidentally changed in b91c49364df1683c7fe1191eb02b8d9c331874f6 --- Userland/Libraries/LibWeb/DOM/Document.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/DOM/Document.cpp b/Userland/Libraries/LibWeb/DOM/Document.cpp index 2777eed422..5307657753 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.cpp +++ b/Userland/Libraries/LibWeb/DOM/Document.cpp @@ -828,10 +828,10 @@ void Document::adopt_node(Node& node) ExceptionOr> Document::adopt_node_binding(NonnullRefPtr node) { if (is(*node)) - return DOM ::NotSupportedError::create("Cannot adopt_ref a document into a document"); + return DOM::NotSupportedError::create("Cannot adopt a document into a document"); if (is(*node)) - return DOM::HierarchyRequestError::create("Cannot adopt_ref a shadow root into a document"); + return DOM::HierarchyRequestError::create("Cannot adopt a shadow root into a document"); if (is(*node) && downcast(*node).host()) return node;