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

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: Improve tests 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 d5a36405792101cabc2bae92bc570d606cce3d18..c184a5e8752c2a28e52e087e3eec5712e62102cc 100644
--- a/Source/core/dom/ContainerNode.cpp
+++ b/Source/core/dom/ContainerNode.cpp
@@ -174,10 +174,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;
« no previous file with comments | « LayoutTests/fast/events/dispatch-event-no-document-expected.txt ('k') | Source/core/dom/DOMImplementation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698