aboutsummaryrefslogtreecommitdiff
path: root/src/html.cc
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.cc
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.cc')
-rw-r--r--src/html.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/html.cc b/src/html.cc
index 41ccf95f..896700ec 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -3192,8 +3192,9 @@ const TagInfo Tags[] = {
/* noscript 1011 */
{"object", B8(111101),'R',2, Html_tag_open_object, NULL, NULL},
{"ol", B8(011010),'R',2, Html_tag_open_ol, NULL, NULL},
- /* optgroup */
- {"option", B8(010001),'O',1, Html_tag_open_option,NULL,Html_tag_close_option},
+ {"optgroup", B8(010101),'O',1, Html_tag_open_optgroup, NULL,
+ Html_tag_close_optgroup},
+ {"option", B8(010001),'O',0, Html_tag_open_option,NULL,Html_tag_close_option},
{"p", B8(010110),'O',1, Html_tag_open_p, NULL, NULL},
/* param 010001 'F' */
{"pre", B8(010110),'R',2, Html_tag_open_pre, NULL, Html_tag_close_pre},