mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-28 17:23:09 +03:00
[project @ 2004-05-21 22:51:02 by bursa]
Fix <select>, which got broken earlier. svn path=/import/netsurf/; revision=882
This commit is contained in:
parent
fe2a9961df
commit
3c707fbeea
@ -948,7 +948,7 @@ struct box_result box_select(xmlNode *n, struct box_status *status,
|
|||||||
xmlNode *c, *c2;
|
xmlNode *c, *c2;
|
||||||
|
|
||||||
gadget = form_new_control(GADGET_SELECT);
|
gadget = form_new_control(GADGET_SELECT);
|
||||||
if (gadget)
|
if (!gadget)
|
||||||
return (struct box_result) {0, false, true};
|
return (struct box_result) {0, false, true};
|
||||||
|
|
||||||
if (status->current_form)
|
if (status->current_form)
|
||||||
@ -1050,7 +1050,8 @@ void add_option(xmlNode* n, struct form_control* current_select, char *text)
|
|||||||
current_select->data.select.last_item = option;
|
current_select->data.select.last_item = option;
|
||||||
|
|
||||||
if ((s = (char *) xmlGetProp(n, (const xmlChar *) "value"))) {
|
if ((s = (char *) xmlGetProp(n, (const xmlChar *) "value"))) {
|
||||||
option->value = s;
|
option->value = xstrdup(s);
|
||||||
|
xmlFree(s);
|
||||||
} else {
|
} else {
|
||||||
option->value = xstrdup(text);
|
option->value = xstrdup(text);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user