Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 48013d58a1922b32848c0cae2a650a12565899e0..8dc27ab3d2c3d7ec143ed22a1e46a3ef5d89bd2b 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -1008,7 +1008,6 @@ PassRefPtrWillBeRawPtr<Node> Document::adoptNode(PassRefPtrWillBeRawPtr<Node> so |
switch (source->nodeType()) { |
case DOCUMENT_NODE: |
- case DOCUMENT_TYPE_NODE: |
exceptionState.throwDOMException(NotSupportedError, "The node provided is of type '" + source->nodeName() + "', which may not be adopted."); |
return nullptr; |
case ATTRIBUTE_NODE: { |