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;