| Index: Source/core/html/parser/HTMLParserIdioms.cpp
|
| diff --git a/Source/core/html/parser/HTMLParserIdioms.cpp b/Source/core/html/parser/HTMLParserIdioms.cpp
|
| index d91ea4605459f43788118c9942b4da67ce033239..6baada93f07f4e0bb4a458db87adfb4c8e836e70 100644
|
| --- a/Source/core/html/parser/HTMLParserIdioms.cpp
|
| +++ b/Source/core/html/parser/HTMLParserIdioms.cpp
|
| @@ -207,12 +207,12 @@ bool parseHTMLInteger(const String& input, int& value)
|
| // Step 1
|
| // Step 2
|
| unsigned length = input.length();
|
| - if (length && input.is8Bit()) {
|
| + if (!length || input.is8Bit()) {
|
| const LChar* start = input.characters8();
|
| return parseHTMLIntegerInternal(start, start + length, value);
|
| }
|
|
|
| - const UChar* start = input.bloatedCharacters();
|
| + const UChar* start = input.characters16();
|
| return parseHTMLIntegerInternal(start, start + length, value);
|
| }
|
|
|
|
|