From 6d585308f8ae421261bcb41b12bb872f5949abc7 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 7 Aug 2012 10:53:40 +0100 Subject: Fix handling of form elements without a
. --- render/html_forms.c | 3 --- 1 file changed, 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) { -- cgit v1.2.3 From fb853c93541554f383827dd84aee12a05afe6a75 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 7 Aug 2012 15:16:50 +0100 Subject: Fix attribute includes selector callback. --- css/select.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/css/select.c b/css/select.c index 59f2641cc..fa38b4ef8 100644 --- a/css/select.c +++ b/css/select.c @@ -1058,8 +1058,9 @@ css_error node_has_attribute_includes(void *pw, void *node, const char *start; const char *end; + *match = false; + if (vlen == 0) { - *match = false; return CSS_OK; } -- cgit v1.2.3