From 4071f894114fab5b4087de3ddfaa32fef441f9cf Mon Sep 17 00:00:00 2001 From: corvid Date: Sat, 15 Dec 2012 05:21:50 +0000 Subject: 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 Amber Ankur Bangla Annvix AnNyung Anonym.OS for some crazy reason. This led to dillo showing labels like "AnNyung Anonym.OS". --- src/form.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/form.cc') 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; + } +} + /* *