| Index: Source/core/html/HTMLContentElement.cpp
|
| diff --git a/Source/core/html/HTMLContentElement.cpp b/Source/core/html/HTMLContentElement.cpp
|
| index 1602680764bd74a1c2d2c8518913c90b57bad8ad..228b23561e84a97f06a0e4400e35f77f0d05484e 100644
|
| --- a/Source/core/html/HTMLContentElement.cpp
|
| +++ b/Source/core/html/HTMLContentElement.cpp
|
| @@ -82,6 +82,10 @@ void HTMLContentElement::parseAttribute(const QualifiedName& name, const AtomicS
|
|
|
| static inline bool includesDisallowedPseudoClass(const CSSSelector& selector)
|
| {
|
| + if (selector.pseudoType() == CSSSelector::PseudoNot) {
|
| + const CSSSelector* subSelector = selector.selectorList()->first();
|
| + return subSelector->match() == CSSSelector::PseudoClass;
|
| + }
|
| return selector.match() == CSSSelector::PseudoClass && selector.pseudoType() != CSSSelector::PseudoNot;
|
| }
|
|
|
|
|