diff options
| author | Marius Gedminas <marius@gedmin.as> | 2013-03-28 17:29:49 +0200 |
|---|---|---|
| committer | Marius Gedminas <marius@gedmin.as> | 2013-04-01 13:08:26 +0300 |
| commit | 5aa5eef5d36e9fd5dda86c0291c6c849594ce3df (patch) | |
| tree | e42795bd5f432b34741d87a28d51a50a7d6382d6 /webtest/forms.py | |
| parent | dfe37cb151ec3a09040a26297bb575f29d97dbe6 (diff) | |
| download | webtest-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.py | 2 |
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' |
