changeset 964:7d3aefaf2626

add CSS parser todos
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Fri, 27 Feb 2009 10:07:05 +0100
parents 95ca1de04601
children 9b0b8ae9b06a
files src/cssparser.cc
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/cssparser.cc	Thu Feb 26 21:09:36 2009 +0100
+++ b/src/cssparser.cc	Fri Feb 27 10:07:05 2009 +0100
@@ -427,6 +427,7 @@
       }
    }
 
+   // \todo handle negative numbers according to CSS 2.1
    if (isdigit(c)) {
       parser->ttype = CSS_TK_DECINT;
       do {
@@ -1137,6 +1138,10 @@
          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);