diff options
-rw-r--r-- | src/cssparser.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cssparser.cc b/src/cssparser.cc index a95722c4..db0c2961 100644 --- a/src/cssparser.cc +++ b/src/cssparser.cc @@ -427,6 +427,7 @@ static void Css_next_token(CssParser * parser) } } + // \todo handle negative numbers according to CSS 2.1 if (isdigit(c)) { parser->ttype = CSS_TK_DECINT; do { @@ -1137,6 +1138,10 @@ static void Css_parse_ruleset(CssParser * parser) list->set(list->size() - 1, selector); } + // \todo dump whole ruleset in case of parse error as required by CSS 2.1 + // however make sure we don't dump it if only dillo fails to parse + // valid CSS. + if (parser->ttype == CSS_TK_CHAR && parser->tval[0] == ',') /* To read the next token. */ Css_next_token(parser); |