Chromium Code Reviews| Index: Source/core/css/SelectorChecker.cpp |
| diff --git a/Source/core/css/SelectorChecker.cpp b/Source/core/css/SelectorChecker.cpp |
| index 8f8b1c845bc35570498fd1168b272a0016998921..2ecbe043573f94d347c34a353d2d6a3b9ecff1e3 100644 |
| --- a/Source/core/css/SelectorChecker.cpp |
| +++ b/Source/core/css/SelectorChecker.cpp |
| @@ -787,7 +787,7 @@ bool SelectorChecker::checkOne(const SelectorCheckingContext& context, const Sib |
| case CSSSelector::PseudoHover: |
| // If we're in quirks mode, then hover should never match anchors with no |
| // href and *:hover should not match anything. This is important for sites like wsj.com. |
|
esprehn
2014/06/09 21:41:35
I suspect the wjs.com website has long since chang
Inactive
2014/06/10 00:35:05
Unfortunately, based on my testing, out behavior i
|
| - if (m_strictParsing || context.isSubSelector || (selector.m_match == CSSSelector::Tag && selector.tagQName() != anyQName() && !isHTMLAnchorElement(element)) || element.isLink()) { |
| + if (m_strictParsing || context.isSubSelector || element.isLink()) { |
| if (m_mode == ResolvingStyle) { |
| if (context.elementStyle) |
| context.elementStyle->setAffectedByHover(); |
| @@ -801,7 +801,7 @@ bool SelectorChecker::checkOne(const SelectorCheckingContext& context, const Sib |
| case CSSSelector::PseudoActive: |
| // If we're in quirks mode, then :active should never match anchors with no |
| // href and *:active should not match anything. |
| - if (m_strictParsing || context.isSubSelector || (selector.m_match == CSSSelector::Tag && selector.tagQName() != anyQName() && !isHTMLAnchorElement(element)) || element.isLink()) { |
| + if (m_strictParsing || context.isSubSelector || element.isLink()) { |
| if (m_mode == ResolvingStyle) { |
| if (context.elementStyle) |
| context.elementStyle->setAffectedByActive(); |