summaryrefslogtreecommitdiff
path: root/webtest/forms.py
diff options
context:
space:
mode:
authorMarius Gedminas <marius@gedmin.as>2013-03-28 17:29:49 +0200
committerMarius Gedminas <marius@gedmin.as>2013-04-01 13:08:26 +0300
commit5aa5eef5d36e9fd5dda86c0291c6c849594ce3df (patch)
treee42795bd5f432b34741d87a28d51a50a7d6382d6 /webtest/forms.py
parentdfe37cb151ec3a09040a26297bb575f29d97dbe6 (diff)
downloadwebtest-5aa5eef5d36e9fd5dda86c0291c6c849594ce3df.tar.gz
Handle the short form of <select multiple>
See http://www.w3.org/TR/REC-html40/interact/forms.html#adef-multiple if you need convincing that this is valid HTML (first example, a couple of pages down).
Diffstat (limited to 'webtest/forms.py')
-rw-r--r--webtest/forms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/webtest/forms.py b/webtest/forms.py
index e411627..4772156 100644
--- a/webtest/forms.py
+++ b/webtest/forms.py
@@ -383,7 +383,7 @@ class Form(object):
tag_type = attrs.get('type', 'text').lower()
if tag == 'select':
tag_type = 'select'
- if tag_type == "select" and attrs.get("multiple"):
+ if tag_type == "select" and "multiple" in attrs:
tag_type = "multiple_select"
if tag == 'button':
tag_type = 'submit'