diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-01-23 22:26:23 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-01-23 22:26:23 +0000 |
commit | 87ce1930f7a99080eabc4e151ca7850e4c6e64bc (patch) | |
tree | 36824a4e2dec8e9e75327b40398b9fcf325186ef /src/parse | |
parent | 8e7d59ae95071b7fc3996ae77869a698075f6279 (diff) | |
download | libcss-87ce1930f7a99080eabc4e151ca7850e4c6e64bc.tar.gz libcss-87ce1930f7a99080eabc4e151ca7850e4c6e64bc.tar.bz2 |
Fix counter-increment parsing
svn path=/trunk/libcss/; revision=6196
Diffstat (limited to 'src/parse')
-rw-r--r-- | src/parse/properties.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ |