Merge branch 'master' of ssh://lupin/qutebrowser
This commit is contained in:
commit
d2b7530c0a
@ -368,7 +368,7 @@ class IsEditableTests(unittest.TestCase):
|
|||||||
def test_select(self):
|
def test_select(self):
|
||||||
"""Test selectbox."""
|
"""Test selectbox."""
|
||||||
elem = FakeWebElement(tagname='select')
|
elem = FakeWebElement(tagname='select')
|
||||||
self.assertTrue(webelem.is_editable(elem))
|
self.assertFalse(webelem.is_editable(elem))
|
||||||
|
|
||||||
def test_input_disabled(self):
|
def test_input_disabled(self):
|
||||||
"""Test disabled input element."""
|
"""Test disabled input element."""
|
||||||
|
@ -258,7 +258,7 @@ def is_editable(elem, strict=False):
|
|||||||
return True
|
return True
|
||||||
elif tag == 'input':
|
elif tag == 'input':
|
||||||
return _is_editable_input(elem)
|
return _is_editable_input(elem)
|
||||||
elif tag in ('textarea', 'select'):
|
elif tag == 'textarea':
|
||||||
return is_writable(elem)
|
return is_writable(elem)
|
||||||
elif tag in ('embed', 'applet'):
|
elif tag in ('embed', 'applet'):
|
||||||
# Flash/Java/...
|
# Flash/Java/...
|
||||||
|
Loading…
Reference in New Issue
Block a user