From ba9b846a20abd09ebfb264cc633f4eab5e117a94 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 23 Jun 2014 20:32:40 +0200 Subject: [PATCH] Lower-case HTML attributes. --- qutebrowser/utils/webelem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qutebrowser/utils/webelem.py b/qutebrowser/utils/webelem.py index 2923edb4b..89007c920 100644 --- a/qutebrowser/utils/webelem.py +++ b/qutebrowser/utils/webelem.py @@ -184,7 +184,7 @@ def _is_object_editable(elem): if not elem.hasAttribute('type'): log.webview.debug(" without type clicked...") return False - objtype = elem.attribute('type') + objtype = elem.attribute('type').lower() if objtype.startswith('application/') or elem.hasAttribute('classid'): # Let's hope flash/java stuff has an application/* mimetype OR # at least a classid attribute. Oh, and let's hope images/... @@ -212,7 +212,7 @@ def is_editable(elem): 'kix-'] # Google Docs editor tag = elem.tagName().lower() if tag == 'input': - objtype = elem.attribute('type') + objtype = elem.attribute('type').lower() if objtype in ['text', 'email', 'url', 'tel', 'number', 'password', 'search', '']: return is_writable(elem)