aboutsummaryrefslogtreecommitdiff
path: root/src/css.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/css.hh')
-rw-r--r--src/css.hh6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/css.hh b/src/css.hh
index e81fde62..c29912b3 100644
--- a/src/css.hh
+++ b/src/css.hh
@@ -451,7 +451,11 @@ class CssStyleSheet {
<lout::object::ConstString, RuleList > (true, true, 256) {};
};
- static const int ntags = 90; // \todo replace 90
+ static const int ntags = 90 + 8; // \todo don't hardcode
+ /* 90 is the full number of html4 elements, including those which we have
+ * implemented. From html 5, let's add: article, header, footer, nav,
+ * section, aside, figure, figcaption.
+ */
RuleList elementTable[ntags], anyTable;
RuleMap idTable, classTable;