fixes to attribute selector parsing
git-svn-id: svn://10.0.0.236/trunk@16717 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1150,7 +1150,7 @@ PRBool CSSParserImpl::ParseSelector(PRInt32& aErrorCode,
|
||||
UngetToken();
|
||||
return PR_FALSE;
|
||||
}
|
||||
nsAutoString attr(mToken.mType);
|
||||
nsAutoString attr(mToken.mIdent);
|
||||
if (! mCaseSensative) {
|
||||
attr.ToUpperCase();
|
||||
}
|
||||
@@ -1209,7 +1209,7 @@ PRBool CSSParserImpl::ParseSelector(PRInt32& aErrorCode,
|
||||
if (! mCaseSensative) {
|
||||
value.ToUpperCase();
|
||||
}
|
||||
aSelector.AddAttribute(attr, func, value);
|
||||
aSelector.AddAttribute(attr, func, value, mCaseSensative);
|
||||
}
|
||||
else {
|
||||
UngetToken();
|
||||
|
||||
Reference in New Issue
Block a user