Index: Source/core/css/SelectorChecker.cpp |
diff --git a/Source/core/css/SelectorChecker.cpp b/Source/core/css/SelectorChecker.cpp |
index 4ab0cf1615c59d4c0a71cf53cb7624bec8292016..11731bd5e5d3a11c9b8537c28d8f7612486fc917 100644 |
--- a/Source/core/css/SelectorChecker.cpp |
+++ b/Source/core/css/SelectorChecker.cpp |
@@ -788,6 +788,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(); |