summaryrefslogtreecommitdiff
path: root/src/css.hh
diff options
context:
space:
mode:
authorcorvid <corvid@dillo.org>2013-09-05 19:19:28 +0000
committercorvid <corvid@dillo.org>2013-09-05 19:19:28 +0000
commit249ddc27f05bc334bc554a692e6b2d541053afb3 (patch)
tree6d8bc879e05f46482957a1819eee312a985cafcf /src/css.hh
parent75ad99f0389fb9f7434cfbefa205b1636d4ee1f1 (diff)
some html5 structural elements
The spec also has some rules about how, for instance, a footer can't go inside a header, and that sort of thing, but that can wait until we have something more sophisticated than a collection of IN_* flags.
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;