From 321003a09e64a9738eb9bed0b51e00a79e9cba0a Mon Sep 17 00:00:00 2001 From: Miciah Dashiel Butler Masters Date: Sat, 26 Nov 2005 01:46:01 +0000 Subject: [PATCH] Check for the multiple attribute in html_select rather than in do_html_select. --- src/document/html/parser/forms.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/document/html/parser/forms.c b/src/document/html/parser/forms.c index a48ee992f..927ef38a0 100644 --- a/src/document/html/parser/forms.c +++ b/src/document/html/parser/forms.c @@ -323,10 +323,11 @@ void html_select(struct html_context *html_context, unsigned char *a, unsigned char *html, unsigned char *eof, unsigned char **end) { - if (!do_html_select(a, html, eof, end, html_context)) - return; + if (has_attr(a, "multiple", html_context->options)) + do_html_select_multiple(html_context, a, html, eof, end); + else + do_html_select(a, html, eof, end, html_context); - do_html_select_multiple(html_context, a, html, eof, end); } void @@ -425,7 +426,6 @@ do_html_select(unsigned char *attr, unsigned char *html, int group = 0; int i, max_width; - if (has_attr(attr, "multiple", html_context->options)) return 1; html_focusable(html_context, attr); init_menu(&lnk_menu);