Index: Source/WebCore/editing/CompositeEditCommand.cpp |
=================================================================== |
--- Source/WebCore/editing/CompositeEditCommand.cpp (revision 94882) |
+++ Source/WebCore/editing/CompositeEditCommand.cpp (working copy) |
@@ -808,7 +808,7 @@ |
appendNode(topNode, blockElement); |
RefPtr<Node> lastNode = topNode; |
- if (start.deprecatedNode() != outerNode) { |
+ if (start.deprecatedNode() != outerNode && lastNode->isElementNode()) { |
Vector<RefPtr<Node> > ancestors; |
// Insert each node from innerNode to outerNode (excluded) in a list. |