Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(553)

Unified Diff: Source/core/dom/ContainerNode.cpp

Issue 22880019: [DOM4] Doctypes now always have a node document and can be moved across document boundaries (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add missing test Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/dom/ContainerNode.cpp
diff --git a/Source/core/dom/ContainerNode.cpp b/Source/core/dom/ContainerNode.cpp
index 1b26b71ed4092b7f264fd8962e5148ff451b7108..1aaf4c27397f0bd0a7be041057e9bffbd2b8d777 100644
--- a/Source/core/dom/ContainerNode.cpp
+++ b/Source/core/dom/ContainerNode.cpp
@@ -173,10 +173,6 @@ static inline bool checkAcceptChild(ContainerNode* newParent, Node* newChild, No
return false;
}
- if (newChild->inDocument() && newChild->isDocumentTypeNode()) {
- es.throwDOMException(HierarchyRequestError);
- return false;
- }
if (containsConsideringHostElements(newChild, newParent)) {
es.throwDOMException(HierarchyRequestError);
return false;

Powered by Google App Engine
This is Rietveld 408576698