| Index: sky/engine/core/dom/Range.cpp
|
| diff --git a/sky/engine/core/dom/Range.cpp b/sky/engine/core/dom/Range.cpp
|
| index 43116e6b428ba2f75aa2651dbdf82bf7ac750f33..75feffae7a6b3fa88d31f77b67a098fe3d1b6bdb 100644
|
| --- a/sky/engine/core/dom/Range.cpp
|
| +++ b/sky/engine/core/dom/Range.cpp
|
| @@ -1096,7 +1096,7 @@ void Range::surroundContents(PassRefPtr<Node> passNewParent, ExceptionState& exc
|
| // If m_start.container() is a character data node, it will be split and it will be its parent that will
|
| // need to accept newParent (or in the case of a comment, it logically "would" be inserted into the parent,
|
| // although this will fail below for another reason).
|
| - if (parentOfNewParent->isCharacterDataNode())
|
| + if (parentOfNewParent->isTextNode())
|
| parentOfNewParent = parentOfNewParent->parentNode();
|
|
|
| if (!parentOfNewParent) {
|
|
|