Minor fix

This commit is contained in:
Miroslav Stampar 2013-07-31 08:45:04 +02:00
parent a585aa4bff
commit 4f58e0af0c

View File

@ -3277,7 +3277,7 @@ def findPageForms(content, url, raise_=False, addToTargets=False):
for form in forms:
try:
for control in form.controls:
if hasattr(control, "items"):
if hasattr(control, "items") and not control.disabled:
# if control has selectable items select first non-disabled
for item in control.items:
if not item.disabled: