From 7ec90d6470bcc830423026b0360674be7ebeaebb Mon Sep 17 00:00:00 2001 From: iska Date: Wed, 25 Nov 2015 21:34:43 +0100 Subject: [PATCH] Fix escaped-code-point consuming in CSS input stream --- HTMLKit/CSSInputStream.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HTMLKit/CSSInputStream.m b/HTMLKit/CSSInputStream.m index 661ab6f..f9336be 100644 --- a/HTMLKit/CSSInputStream.m +++ b/HTMLKit/CSSInputStream.m @@ -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];