aboutsummaryrefslogtreecommitdiff
path: root/src/html_common.hh
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2013-04-20 23:04:29 +0000
committercorvid <corvid@lavabit.com>2013-04-20 23:04:29 +0000
commitb1823faf24501fce566fde182a5f56217c3b8dcc (patch)
treeb2f04fc1793580ed46a7242570c5cfe9e9316168 /src/html_common.hh
parent871b8716ba736be7953f71e1d62c8a9f2cb07ca5 (diff)
implement OPTGROUP in src/
I wrote nearly all of this last year, and I've just been going back over it now. As I recall, I initially also tried: select holds optgroups and options, and optgroups hold options (instead of this flat array of options, optgroups, and close-optgroups), but the code wasn't coming out any cleaner, so...
Diffstat (limited to 'src/html_common.hh')
-rw-r--r--src/html_common.hh11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/html_common.hh b/src/html_common.hh
index cdb856db..44730a57 100644
--- a/src/html_common.hh
+++ b/src/html_common.hh
@@ -80,11 +80,12 @@ typedef enum {
IN_FORM = 1 << 3,
IN_SELECT = 1 << 4,
IN_OPTION = 1 << 5,
- IN_TEXTAREA = 1 << 6,
- IN_MAP = 1 << 7,
- IN_PRE = 1 << 8,
- IN_BUTTON = 1 << 9,
- IN_LI = 1 << 10,
+ IN_OPTGROUP = 1 << 6,
+ IN_TEXTAREA = 1 << 7,
+ IN_BUTTON = 1 << 8,
+ IN_MAP = 1 << 9,
+ IN_PRE = 1 << 10,
+ IN_LI = 1 << 11,
} DilloHtmlProcessingState;
/*