diff options
Diffstat (limited to 'Source/WebCore/html/HTMLElement.cpp')
-rw-r--r-- | Source/WebCore/html/HTMLElement.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/WebCore/html/HTMLElement.cpp b/Source/WebCore/html/HTMLElement.cpp index 82e33d1..0aa9664 100644 --- a/Source/WebCore/html/HTMLElement.cpp +++ b/Source/WebCore/html/HTMLElement.cpp @@ -570,7 +570,7 @@ static Element* contextElementForInsertion(const String& where, Element* element { if (equalIgnoringCase(where, "beforeBegin") || equalIgnoringCase(where, "afterEnd")) { ContainerNode* parent = element->parentNode(); - if (parent && parent->isDocumentNode()) { + if (parent && !parent->isElementNode()) { ec = NO_MODIFICATION_ALLOWED_ERR; return 0; } |