Index: Source/core/editing/MarkupAccumulator.cpp |
diff --git a/Source/core/editing/MarkupAccumulator.cpp b/Source/core/editing/MarkupAccumulator.cpp |
index 5949967302c9cc5125345238e865461aa62d8f4d..044e9ee3854ddeff91ec6e669ac94f926968841f 100644 |
--- a/Source/core/editing/MarkupAccumulator.cpp |
+++ b/Source/core/editing/MarkupAccumulator.cpp |
@@ -390,10 +390,15 @@ void MarkupAccumulator::appendElement(StringBuilder& result, Element& element, N |
appendCloseTag(result, element); |
} |
+static String nodeNamePreservingCase(const Element& element) |
+{ |
+ return element.tagQName().toString(); |
+} |
+ |
void MarkupAccumulator::appendOpenTag(StringBuilder& result, const Element& element, Namespaces* namespaces) |
{ |
result.append('<'); |
- result.append(element.nodeNamePreservingCase()); |
+ result.append(nodeNamePreservingCase(element)); |
if (!element.document().isHTMLDocument() && namespaces && shouldAddNamespaceElement(element)) |
appendNamespace(result, element.prefix(), element.namespaceURI(), *namespaces); |
} |
@@ -526,7 +531,7 @@ void MarkupAccumulator::appendEndMarkup(StringBuilder& result, const Node& node) |
return; |
result.appendLiteral("</"); |
- result.append(toElement(node).nodeNamePreservingCase()); |
+ result.append(nodeNamePreservingCase(toElement(node))); |
result.append('>'); |
} |