aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-02-27 10:07:05 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-02-27 10:07:05 +0100
commite903441ffac40bcb839e61c9e515c2f844369182 (patch)
tree93f510e514970212a1e4f72e61e777f42d457189 /src
parent8c0da2c328d3918c4519c89110bc2329aff3e943 (diff)
add CSS parser todos
Diffstat (limited to 'src')
-rw-r--r--src/cssparser.cc5
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);