Fix escaped-code-point consuming in CSS input stream

This commit is contained in:
iska
2015-11-25 21:34:43 +01:00
parent 002564f9ae
commit 7ec90d6470
+2 -2
View File
@@ -38,8 +38,8 @@
break;
} else if (isName(codePoint)) {
AppendCodePoint(value, codePoint);
} else if (isValidEscape(self.nextInputCharacter, [self inputCharacterPointAtOffset:1])) {
UTF32Char escapedCodePoint = [self consumeNextInputCharacter];
} else if (isValidEscape(codePoint, [self inputCharacterPointAtOffset:1])) {
UTF32Char escapedCodePoint = [self consumeEscapedCodePoint];
AppendCodePoint(value, escapedCodePoint);
} else {
[self reconsumeCurrentInputCharacter];