Index: Source/core/dom/TreeScope.cpp |
diff --git a/Source/core/dom/TreeScope.cpp b/Source/core/dom/TreeScope.cpp |
index a54da2e6e3f33204f3cecd35781fb7aff03572d3..594a6f147fe4be0d6076cda189c09021b89fb6eb 100644 |
--- a/Source/core/dom/TreeScope.cpp |
+++ b/Source/core/dom/TreeScope.cpp |
@@ -319,7 +319,7 @@ Element* TreeScope::findAnchor(const String& name) |
{ |
if (name.isEmpty()) |
return 0; |
- if (Element* element = getElementById(name)) |
+ if (Element* element = getElementById(AtomicString(name))) |
return element; |
ASSERT(rootNode()); |
for (Element* element = ElementTraversal::firstWithin(*rootNode()); element; element = ElementTraversal::next(*element)) { |