Correct parenthesis-matching inside of :not(). (Bug 586070) r=bzbarsky a2.0=bsmedberg
This commit is contained in:
@@ -3223,11 +3223,13 @@ CSSParserImpl::ParseNegatedSimpleSelector(PRInt32& aDataMask,
|
||||
}
|
||||
if (eSelectorParsingStatus_Error == parsingStatus) {
|
||||
REPORT_UNEXPECTED_TOKEN(PENegationBadInner);
|
||||
SkipUntil(')');
|
||||
return parsingStatus;
|
||||
}
|
||||
// close the parenthesis
|
||||
if (!ExpectSymbol(')', PR_TRUE)) {
|
||||
REPORT_UNEXPECTED_TOKEN(PENegationNoClose);
|
||||
SkipUntil(')');
|
||||
return eSelectorParsingStatus_Error;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user