diff options
author | corvid <corvid@lavabit.com> | 2012-12-15 05:21:50 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2012-12-15 05:21:50 +0000 |
commit | 4071f894114fab5b4087de3ddfaa32fef441f9cf (patch) | |
tree | 93115eda06b9f2167284786cd069e8ab9f979f9b /src/form.cc | |
parent | 565f21fba29f87c843c0e3d06b22879755de8bf9 (diff) |
finish option as soon as we see the close tag
I was just looking at distrowatch, and noticed that a menu looked odd.
It turns out that their code goes like
Amarok Live<option value="amaroklive">Amarok Live</option>
Amber<option value="amber">Amber</option>
Ankur Bangla<option value="ankur">Ankur Bangla</option>
Annvix<option value="annvix">Annvix</option>
AnNyung<option value="annyung">AnNyung</option>
Anonym.OS<option value="anonymos">Anonym.OS</option>
for some crazy reason. This led to dillo showing labels like
"AnNyung Anonym.OS".
Diffstat (limited to 'src/form.cc')
-rw-r--r-- | src/form.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/form.cc b/src/form.cc index 6f272b8f..8ec340bb 100644 --- a/src/form.cc +++ b/src/form.cc @@ -823,6 +823,14 @@ void Html_tag_open_option(DilloHtml *html, const char *tag, int tagsize) a_Html_stash_init(html); } +void Html_tag_close_option(DilloHtml *html) +{ + if (html->InFlags & IN_OPTION) { + Html_option_finish(html); + html->InFlags &= ~IN_OPTION; + } +} + /* * <BUTTON> */ |