diff options
author | jcid <devnull@localhost> | 2008-06-02 02:42:24 +0200 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-06-02 02:42:24 +0200 |
commit | cf987dd5f89ceb29fcf71bc95eedb95145fa7c05 (patch) | |
tree | 6f0208415c1f83a3828bae3e9a9bcb7563a81985 /src/html.cc | |
parent | 344af434f58b7348611b7355b656c45faa45ae9e (diff) |
- SELECT as inline element, part II.
Diffstat (limited to 'src/html.cc')
-rw-r--r-- | src/html.cc | 4 |
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); |