Index: Source/core/editing/htmlediting.cpp |
diff --git a/Source/core/editing/htmlediting.cpp b/Source/core/editing/htmlediting.cpp |
index 8a7e6489cb870b7571f086a2a1c4f2130624c999..9fd351541d5d6177076b88a386fb4ffe65f03b34 100644 |
--- a/Source/core/editing/htmlediting.cpp |
+++ b/Source/core/editing/htmlediting.cpp |
@@ -116,7 +116,10 @@ Node* highestEditableRoot(const Position& position, EditableType editableType) |
if (!highestRoot) |
return 0; |
- node = highestRoot; |
+ if (highestRoot->hasTagName(bodyTag)) |
+ return highestRoot; |
+ |
+ node = highestRoot->parentNode(); |
while (node) { |
if (node->rendererIsEditable(editableType)) |
highestRoot = node; |