summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-01-23 22:29:17 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-01-23 22:29:17 +0000
commit71d0fa18c22d12a11bdfbefb12878228e4c8f8c3 (patch)
tree5b20d215480d8a1b7b5cdbc476e320b2a370b8af /src
parentb594dd0246f61ac545c62de689d3bf1c4349a8a3 (diff)
downloadlibcss-71d0fa18c22d12a11bdfbefb12878228e4c8f8c3.tar.gz
libcss-71d0fa18c22d12a11bdfbefb12878228e4c8f8c3.tar.bz2
Fix counter-reset parsing
svn path=/trunk/libcss/; revision=6199
Diffstat (limited to 'src')
-rw-r--r--src/parse/properties.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/parse/properties.c b/src/parse/properties.c
index 4670934..ff7460a 100644
--- a/src/parse/properties.c
+++ b/src/parse/properties.c
@@ -1810,7 +1810,7 @@ css_error parse_counter_reset(css_language *c,
while (token != NULL) {
const parserutils_hash_entry *name = token->idata;
- fixed increment = INTTOFIX(1);
+ fixed increment = INTTOFIX(0);
consumeWhitespace(vector, &temp_ctx);
@@ -1849,6 +1849,8 @@ css_error parse_counter_reset(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 */
@@ -1886,7 +1888,7 @@ css_error parse_counter_reset(css_language *c,
while (token != NULL) {
const parserutils_hash_entry *name = token->idata;
- fixed increment = INTTOFIX(1);
+ fixed increment = INTTOFIX(0);
consumeWhitespace(vector, ctx);
@@ -1929,6 +1931,8 @@ css_error parse_counter_reset(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 */