Reviewed by Geoff Garen.
[WebKit-https.git] / WebCore / css / CSSSelector.cpp
index 7d23d1c..ee9c846 100644 (file)
@@ -525,10 +525,13 @@ void CSSSelector::extractPseudoType() const
     case PseudoSingleButton:
     case PseudoNoButton:
     case PseudoNotParsed:
+        break;
     case PseudoFirstPage:
     case PseudoLeftPage:
     case PseudoRightPage:
-        break;
+        // FIXME: These should only be allowed in @page rules. Disabled them altogether until that's implemented correctly.
+        m_pseudoType = PseudoUnknown;
+        return;
     }
 
     if (m_match == PseudoClass && element) {