Index: Source/core/dom/Range.cpp |
diff --git a/Source/core/dom/Range.cpp b/Source/core/dom/Range.cpp |
index 7cee148ee7ba831f58fc67beccde79ad8aad4d80..9c9ac3466ca2d477fbb7498f479c7d8c5a8071f1 100644 |
--- a/Source/core/dom/Range.cpp |
+++ b/Source/core/dom/Range.cpp |
@@ -1458,7 +1458,7 @@ void Range::checkDeleteExtract(ExceptionState& exceptionState) |
Node* pastLast = pastLastNode(); |
for (Node* n = firstNode(); n != pastLast; n = NodeTraversal::next(*n)) { |
- if (n->nodeType() == Node::DOCUMENT_TYPE_NODE) { |
+ if (n->isDocumentTypeNode()) { |
exceptionState.throwDOMException(HierarchyRequestError, "The Range contains a doctype node."); |
return; |
} |