From 0bf56dc2d9605dcd310c5a631bea884bf573a9b6 Mon Sep 17 00:00:00 2001
From: =?utf8?q?S=C3=A9bastien=20Marie?= <semarie@users.noreply.github.com>
Date: Mon, 20 Apr 2015 17:46:29 +0200
Subject: [PATCH] enable input-mode on input.search element

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 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/dom.c b/src/dom.c
index 9757704..74eeb50 100644
--- 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 {
-- 
2.20.1