mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +03:00
Fix handling of form elements without a <form>.
This commit is contained in:
parent
6205c62ba3
commit
6d585308f8
@ -468,9 +468,6 @@ struct form_control *html_forms_get_control_for_node(struct form *forms, dom_nod
|
||||
dom_exception err;
|
||||
dom_string *ds_name = NULL;
|
||||
|
||||
if (forms == NULL)
|
||||
return NULL;
|
||||
|
||||
/* Step one, see if we already have a control */
|
||||
for (f = forms; f != NULL; f = f->prev) {
|
||||
for (ctl = f->controls; ctl != NULL; ctl = ctl->next) {
|
||||
|
Loading…
Reference in New Issue
Block a user