summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/html
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2012-05-08 02:52:51 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-05-08 02:52:51 -0700
commitd65e985be95311ae46bfcb518b42721130469eb9 (patch)
tree9b543accba63be410fb9b151f23e499a387766a0 /Source/WebCore/html
parentaf5fa119b4efee32d2fc764636fd6a3ffaf06284 (diff)
parent70cbe34eb294d600eab2bdef7a78959c37ff7781 (diff)
downloadexternal_webkit-d65e985be95311ae46bfcb518b42721130469eb9.zip
external_webkit-d65e985be95311ae46bfcb518b42721130469eb9.tar.gz
external_webkit-d65e985be95311ae46bfcb518b42721130469eb9.tar.bz2
Merge "Cherry-pick WebKit change r104441 to fix a rendering crash" into jb-dev
Diffstat (limited to 'Source/WebCore/html')
-rw-r--r--Source/WebCore/html/HTMLElement.cpp2
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;
}