Source

PunkyBrowster / punky / browster.py

Diff from to

File punky/browster.py

 
         """
         el = self._first(selector)
-        if el.tagName() == 'TEXTAREA' or \
-           (el.tagName() == 'INPUT' and str(el.attribute('type')) == 'text'):
+        if (el.tagName() == 'TEXTAREA' or
+           (el.tagName() == 'INPUT' and
+            str(el.attribute('type')) in SUPPORTED_STRING_INPUT_TYPES)):
             v = self._first(selector).evaluateJavaScript('this.value')
             return unicode(v.toString())
         else: