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:
parent
ad78f2d7f0
commit
c266c49303
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user