We considered every html form input element as editable. This brakes the next
submit element on duckduckgo's search result page.
Now we exclude the input type submit, reset and image from the editable input
elements.
}
char *type = webkit_dom_element_get_attribute(element, "type");
if (!g_ascii_strcasecmp(tagname, "input")
- || !g_ascii_strcasecmp(type, "text")
- || !g_ascii_strcasecmp(type, "password")
+ && g_ascii_strcasecmp(type, "submit")
+ && g_ascii_strcasecmp(type, "reset")
+ && g_ascii_strcasecmp(type, "image")
) {
return TRUE;
}
+
return FALSE;
}