| Index: Source/WebCore/xml/parser/XMLDocumentParser.cpp
|
| ===================================================================
|
| --- Source/WebCore/xml/parser/XMLDocumentParser.cpp (revision 114849)
|
| +++ Source/WebCore/xml/parser/XMLDocumentParser.cpp (working copy)
|
| @@ -175,7 +175,8 @@
|
| m_bufferedText.swap(empty);
|
| #endif
|
|
|
| - if (m_view && !m_leafTextNode->attached())
|
| + if (m_view && m_leafTextNode->parentNode() && m_leafTextNode->parentNode()->attached()
|
| + && !m_leafTextNode->attached())
|
| m_leafTextNode->attach();
|
|
|
| m_leafTextNode = 0;
|
|
|