From 87ce1930f7a99080eabc4e151ca7850e4c6e64bc Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 23 Jan 2009 22:26:23 +0000 Subject: Fix counter-increment parsing svn path=/trunk/libcss/; revision=6196 --- src/parse/properties.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/parse/properties.c b/src/parse/properties.c index 31ba6f9..4670934 100644 --- a/src/parse/properties.c +++ b/src/parse/properties.c @@ -1680,6 +1680,8 @@ css_error parse_counter_increment(css_language *c, first = false; token = parserutils_vector_iterate(vector, &temp_ctx); + if (token != NULL && token->type != CSS_TOKEN_IDENT) + return CSS_INVALID; } /* And for the terminator */ @@ -1760,6 +1762,8 @@ css_error parse_counter_increment(css_language *c, first = false; token = parserutils_vector_iterate(vector, ctx); + if (token != NULL && token->type != CSS_TOKEN_IDENT) + return CSS_INVALID; } /* And for the terminator */ -- cgit v1.2.3