Index: Source/core/css/SelectorChecker.cpp |
diff --git a/Source/core/css/SelectorChecker.cpp b/Source/core/css/SelectorChecker.cpp |
index bcae9e4e97ba2b2f0db67c28c19988f06f920958..5f4e62c301544cd3439a02905e558445a1536ee6 100644 |
--- a/Source/core/css/SelectorChecker.cpp |
+++ b/Source/core/css/SelectorChecker.cpp |
@@ -789,6 +789,8 @@ bool SelectorChecker::checkOne(const SelectorCheckingContext& context, const Sib |
case CSSSelector::PseudoEnabled: |
if (element.isFormControlElement() || isHTMLOptionElement(element) || isHTMLOptGroupElement(element)) |
return !element.isDisabledFormControl(); |
+ else if (isHTMLAnchorElement(element) || isHTMLAreaElement(element)) |
+ return element.isLink(); |
break; |
case CSSSelector::PseudoFullPageMedia: |
return element.document().isMediaDocument(); |