Index: Source/core/html/parser/HTMLEntitySearch.cpp |
diff --git a/Source/core/html/parser/HTMLEntitySearch.cpp b/Source/core/html/parser/HTMLEntitySearch.cpp |
index c4ef2b0c92f2bae7693be9036ab8a0693367824e..fe847e480384a41f536ccb2a8641f048f8d6e5c7 100644 |
--- a/Source/core/html/parser/HTMLEntitySearch.cpp |
+++ b/Source/core/html/parser/HTMLEntitySearch.cpp |
@@ -47,7 +47,8 @@ HTMLEntitySearch::CompareResult HTMLEntitySearch::compare(const HTMLEntityTableE |
{ |
if (entry->length < m_currentLength + 1) |
return Before; |
- UChar entryNextCharacter = entry->entity[m_currentLength]; |
+ const LChar* entityString = HTMLEntityTable::entityString(*entry); |
+ UChar entryNextCharacter = entityString[m_currentLength]; |
if (entryNextCharacter == nextCharacter) |
return Prefix; |
return entryNextCharacter < nextCharacter ? Before : After; |