summaryrefslogtreecommitdiff
path: root/src/html.cc
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-06-02 02:42:24 +0200
committerjcid <devnull@localhost>2008-06-02 02:42:24 +0200
commitcf987dd5f89ceb29fcf71bc95eedb95145fa7c05 (patch)
tree6f0208415c1f83a3828bae3e9a9bcb7563a81985 /src/html.cc
parent344af434f58b7348611b7355b656c45faa45ae9e (diff)
- SELECT as inline element, part II.
Diffstat (limited to 'src/html.cc')
-rw-r--r--src/html.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/html.cc b/src/html.cc
index 79610d15..796ddf10 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -5537,6 +5537,10 @@ static void Html_stack_cleanup_at_open(DilloHtml *html, int new_idx)
if ((html->InFlags & IN_PRE) &&
strcmp(Tags[new_idx].name, "hr") == 0)
break;
+ /* Avoid OPTION closing SELECT */
+ if ((html->InFlags & IN_SELECT) &&
+ strcmp(Tags[new_idx].name,"option") == 0)
+ break;
/* This call closes the top tag only. */
Html_tag_cleanup_at_close(html, oldtag_idx);