Index: Source/core/html/HTMLElement.cpp |
diff --git a/Source/core/html/HTMLElement.cpp b/Source/core/html/HTMLElement.cpp |
index 4298135d334e5acb24501637d36695347e4a0811..54450215e918096123df117b4efd0202371755a5 100644 |
--- a/Source/core/html/HTMLElement.cpp |
+++ b/Source/core/html/HTMLElement.cpp |
@@ -73,8 +73,11 @@ String HTMLElement::nodeName() const |
// FIXME: Would be nice to have an atomicstring lookup based off uppercase |
// chars that does not have to copy the string on a hit in the hash. |
// FIXME: We should have a way to detect XHTML elements and replace the hasPrefix() check with it. |
- if (document().isHTMLDocument() && !tagQName().hasPrefix()) |
- return tagQName().localNameUpper(); |
+ if (document().isHTMLDocument()) { |
+ if (!tagQName().hasPrefix()) |
+ return tagQName().localNameUpper(); |
+ return Element::nodeName().upper(); |
+ } |
return Element::nodeName(); |
} |