diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2012-08-07 10:53:40 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2012-08-07 10:53:40 +0100 |
commit | 6d585308f8ae421261bcb41b12bb872f5949abc7 (patch) | |
tree | eb7dd8b87b1ead6684c0fbc4758f3708ac6a9738 | |
parent | 6205c62ba3d7b1d16d009ad72077735b227fb315 (diff) | |
download | netsurf-6d585308f8ae421261bcb41b12bb872f5949abc7.tar.gz netsurf-6d585308f8ae421261bcb41b12bb872f5949abc7.tar.bz2 |
Fix handling of form elements without a <form>.
-rw-r--r-- | render/html_forms.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/render/html_forms.c b/render/html_forms.c index 9ae8138d6..fc2bcaf8a 100644 --- a/render/html_forms.c +++ b/render/html_forms.c @@ -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) { |