Fix bug 37082 - attribute selector matching for ~= and |= backwards. r=pierre@netscape.com

git-svn-id: svn://10.0.0.236/trunk@67335 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbaron%fas.harvard.edu 2000-04-27 00:07:12 +00:00
parent ad78f2d7f0
commit c266c49303
3 changed files with 12 additions and 12 deletions

View File

@ -2575,12 +2575,12 @@ static PRBool ValueIncludes(const nsString& aValueList, const nsString& aValue,
if (start < end) {
if (aCaseSensitive) {
if (nsCRT::strcmp(value, start)) {
if (!nsCRT::strcmp(value, start)) {
return PR_TRUE;
}
}
else {
if (nsCRT::strcasecmp(value, start)) {
if (!nsCRT::strcasecmp(value, start)) {
return PR_TRUE;
}
}
@ -2616,12 +2616,12 @@ static PRBool ValueDashMatch(const nsString& aValueList, const nsString& aValue,
if (start < end) {
if (aCaseSensitive) {
if (nsCRT::strcmp(value, start)) {
if (!nsCRT::strcmp(value, start)) {
return PR_TRUE;
}
}
else {
if (nsCRT::strcasecmp(value, start)) {
if (!nsCRT::strcasecmp(value, start)) {
return PR_TRUE;
}
}

View File

@ -2575,12 +2575,12 @@ static PRBool ValueIncludes(const nsString& aValueList, const nsString& aValue,
if (start < end) {
if (aCaseSensitive) {
if (nsCRT::strcmp(value, start)) {
if (!nsCRT::strcmp(value, start)) {
return PR_TRUE;
}
}
else {
if (nsCRT::strcasecmp(value, start)) {
if (!nsCRT::strcasecmp(value, start)) {
return PR_TRUE;
}
}
@ -2616,12 +2616,12 @@ static PRBool ValueDashMatch(const nsString& aValueList, const nsString& aValue,
if (start < end) {
if (aCaseSensitive) {
if (nsCRT::strcmp(value, start)) {
if (!nsCRT::strcmp(value, start)) {
return PR_TRUE;
}
}
else {
if (nsCRT::strcasecmp(value, start)) {
if (!nsCRT::strcasecmp(value, start)) {
return PR_TRUE;
}
}

View File

@ -2575,12 +2575,12 @@ static PRBool ValueIncludes(const nsString& aValueList, const nsString& aValue,
if (start < end) {
if (aCaseSensitive) {
if (nsCRT::strcmp(value, start)) {
if (!nsCRT::strcmp(value, start)) {
return PR_TRUE;
}
}
else {
if (nsCRT::strcasecmp(value, start)) {
if (!nsCRT::strcasecmp(value, start)) {
return PR_TRUE;
}
}
@ -2616,12 +2616,12 @@ static PRBool ValueDashMatch(const nsString& aValueList, const nsString& aValue,
if (start < end) {
if (aCaseSensitive) {
if (nsCRT::strcmp(value, start)) {
if (!nsCRT::strcmp(value, start)) {
return PR_TRUE;
}
}
else {
if (nsCRT::strcasecmp(value, start)) {
if (!nsCRT::strcasecmp(value, start)) {
return PR_TRUE;
}
}