Reviewed by Tim H.
[WebKit-https.git] / WebCore / editing / markup.cpp
index b9909eacdb2bc01a0dcc5a39ed834b520c2223b6..3a8e3404d5b2b8d9ad738c41145ebeca9b7afe43 100644 (file)
@@ -26,6 +26,7 @@
 #include "config.h"
 #include "markup.h"
 
+#include "CDATASection.h"
 #include "CSSComputedStyleDeclaration.h"
 #include "CSSPropertyNames.h"
 #include "CSSRule.h"
@@ -252,8 +253,9 @@ static DeprecatedString startMarkup(const Node *node, const Range *range, EAnnot
             
             return markup;
         }
-        case Node::ATTRIBUTE_NODE:
         case Node::CDATA_SECTION_NODE:
+            return static_cast<const CDATASection*>(node)->toString().deprecatedString();
+        case Node::ATTRIBUTE_NODE:
         case Node::ENTITY_NODE:
         case Node::ENTITY_REFERENCE_NODE:
         case Node::NOTATION_NODE: