Index: Source/WebCore/css/SelectorChecker.cpp |
=================================================================== |
--- Source/WebCore/css/SelectorChecker.cpp (revision 119446) |
+++ Source/WebCore/css/SelectorChecker.cpp (working copy) |
@@ -1043,7 +1043,7 @@ |
} |
break; |
case CSSSelector::PseudoEnabled: |
- if (element && (element->isFormControlElement() || element->hasTagName(optgroupTag))) |
+ if (element && (element->isFormControlElement() || element->hasTagName(optionTag) || element->hasTagName(optgroupTag))) |
return element->isEnabledFormControl(); |
break; |
case CSSSelector::PseudoFullPageMedia: |