| Index: third_party/WebKit/Source/core/html/parser/HTMLParserIdioms.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/parser/HTMLParserIdioms.cpp b/third_party/WebKit/Source/core/html/parser/HTMLParserIdioms.cpp
|
| index 79583d0f0607ab309e475cc7eb355aa090bc12b2..4710b2b90d36e3a9bee53c138a051b2c302ac324 100644
|
| --- a/third_party/WebKit/Source/core/html/parser/HTMLParserIdioms.cpp
|
| +++ b/third_party/WebKit/Source/core/html/parser/HTMLParserIdioms.cpp
|
| @@ -349,12 +349,13 @@ Vector<double> parseHTMLListOfFloatingPointNumbers(const String& input) {
|
| static const char charsetString[] = "charset";
|
| static const size_t charsetLength = sizeof("charset") - 1;
|
|
|
| +// https://html.spec.whatwg.org/multipage/infrastructure.html#extracting-character-encodings-from-meta-elements
|
| String extractCharset(const String& value) {
|
| size_t pos = 0;
|
| unsigned length = value.length();
|
|
|
| while (pos < length) {
|
| - pos = value.find(charsetString, pos, TextCaseInsensitive);
|
| + pos = value.find(charsetString, pos, TextCaseASCIIInsensitive);
|
| if (pos == kNotFound)
|
| break;
|
|
|
|
|