Просмотр исходного кода

LibWeb: Fix "adopt" => "adopt_ref" change in adoptNode exceptions

This was accidentally changed in
b91c49364df1683c7fe1191eb02b8d9c331874f6
Luke 4 лет назад
Родитель
Сommit
1258d06f74
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      Userland/Libraries/LibWeb/DOM/Document.cpp

+ 2 - 2
Userland/Libraries/LibWeb/DOM/Document.cpp

@@ -828,10 +828,10 @@ void Document::adopt_node(Node& node)
 ExceptionOr<NonnullRefPtr<Node>> Document::adopt_node_binding(NonnullRefPtr<Node> node)
 ExceptionOr<NonnullRefPtr<Node>> Document::adopt_node_binding(NonnullRefPtr<Node> node)
 {
 {
     if (is<Document>(*node))
     if (is<Document>(*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<ShadowRoot>(*node))
     if (is<ShadowRoot>(*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<DocumentFragment>(*node) && downcast<DocumentFragment>(*node).host())
     if (is<DocumentFragment>(*node) && downcast<DocumentFragment>(*node).host())
         return node;
         return node;