Index: Source/core/editing/markup.cpp |
diff --git a/Source/core/editing/markup.cpp b/Source/core/editing/markup.cpp |
index 58647b1018def31885d511f5a29f2c1161aa18ba..efb90bfbbaba741986c4f28e3b4efa0e0c18a842 100644 |
--- a/Source/core/editing/markup.cpp |
+++ b/Source/core/editing/markup.cpp |
@@ -816,7 +816,7 @@ bool isPlainTextMarkup(Node* node) |
if (!isHTMLDivElement(*element) || !element->hasAttributes()) |
return false; |
- if (element->hasOneChild() && (element->firstChild()->isTextNode() || (element->firstChild()->firstChild()))) |
+ if (element->hasOneChild() && (element->firstChild()->isTextNode() || element->firstChild()->hasChildren())) |
return true; |
return element->hasChildCount(2) && isTabSpanTextNode(element->firstChild()->firstChild()) && element->lastChild()->isTextNode(); |