| Index: Source/modules/encoding/TextDecoder.cpp
|
| diff --git a/Source/modules/encoding/TextDecoder.cpp b/Source/modules/encoding/TextDecoder.cpp
|
| index b4230ef94675cbfcc17f079b03b6c86e247621aa..7a7330839e925b6e46671dd8c45c6ef8f82beaef 100644
|
| --- a/Source/modules/encoding/TextDecoder.cpp
|
| +++ b/Source/modules/encoding/TextDecoder.cpp
|
| @@ -106,7 +106,7 @@ String TextDecoder::decode(const char* start, size_t length, const TextDecodeOpt
|
| if (!m_ignoreBOM && !m_bomSeen && !s.isEmpty()) {
|
| m_bomSeen = true;
|
| String name(m_encoding.name());
|
| - if ((name == "UTF-8" || name == "UTF-16LE" || name == "UTF-16BE") && s[0] == 0xFEFF)
|
| + if ((name == "UTF-8" || name == "utf-16le" || name == "utf-16be") && s[0] == 0xFEFF)
|
| s.remove(0);
|
| }
|
|
|
|
|