Skip over whitespace properly after url string (it's optional whitespace not mandatory whitespace)

This commit is contained in:
kipp 1998-05-11 23:28:22 +00:00
parent 2ec9b9f488
commit df41bc56dd
3 changed files with 6 additions and 9 deletions

View File

@ -399,9 +399,8 @@ PRBool nsCSSScanner::ParseIdent(PRInt32* aErrorCode,
if (!GatherString(aErrorCode, c, ident)) {
return PR_FALSE;
}
if (!EatWhiteSpace(aErrorCode)) {
return PR_FALSE;
}
// Whitespace is allowed at the end of the URL before the right paren
(void) EatWhiteSpace(aErrorCode);
if (LookAhead(aErrorCode, ')')) {
tokenType = eCSSToken_URL;
}

View File

@ -399,9 +399,8 @@ PRBool nsCSSScanner::ParseIdent(PRInt32* aErrorCode,
if (!GatherString(aErrorCode, c, ident)) {
return PR_FALSE;
}
if (!EatWhiteSpace(aErrorCode)) {
return PR_FALSE;
}
// Whitespace is allowed at the end of the URL before the right paren
(void) EatWhiteSpace(aErrorCode);
if (LookAhead(aErrorCode, ')')) {
tokenType = eCSSToken_URL;
}

View File

@ -399,9 +399,8 @@ PRBool nsCSSScanner::ParseIdent(PRInt32* aErrorCode,
if (!GatherString(aErrorCode, c, ident)) {
return PR_FALSE;
}
if (!EatWhiteSpace(aErrorCode)) {
return PR_FALSE;
}
// Whitespace is allowed at the end of the URL before the right paren
(void) EatWhiteSpace(aErrorCode);
if (LookAhead(aErrorCode, ')')) {
tokenType = eCSSToken_URL;
}