enable input-mode on input.search element
authorSébastien Marie <semarie@users.noreply.github.com>
Mon, 20 Apr 2015 15:46:29 +0000 (17:46 +0200)
committerSébastien Marie <semarie@users.noreply.github.com>
Mon, 20 Apr 2015 15:46:29 +0000 (17:46 +0200)
HTML5 define a new input type="search":
http://www.w3.org/TR/html-markup/input.search.html

declare this element to be editable, in order to switch in input-mode
when use it.

src/dom.c

index 9757704..74eeb50 100644 (file)
--- a/src/dom.c
+++ b/src/dom.c
@@ -140,7 +140,8 @@ gboolean dom_is_editable(Element *element)
     if (!g_ascii_strcasecmp(tagname, "textarea")) {
         result = true;
     } else if (!g_ascii_strcasecmp(tagname, "input")
-        && (!*type || !g_ascii_strcasecmp(type, "text") || !g_ascii_strcasecmp(type, "password"))
+        && (!*type || !g_ascii_strcasecmp(type, "text") || !g_ascii_strcasecmp(type, "password")
+               || !g_ascii_strcasecmp(type, "search"))
     ) {
         result = true;
     } else {