sync with new nsString2 API
git-svn-id: svn://10.0.0.236/trunk@28426 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -373,7 +373,7 @@ nsresult nsHTMLTokenizer::ConsumeAttributes(PRUnichar aChar,CStartToken* aToken,
|
||||
if(NS_SUCCEEDED(result)) {
|
||||
nsString& key=((CAttributeToken*)theToken)->GetKey();
|
||||
nsString& text=theToken->GetStringValueXXX();
|
||||
if((mDoXMLEmptyTags) && (key[0]==kForwardSlash) && (0==text.Length())){
|
||||
if((mDoXMLEmptyTags) && (kForwardSlash==key.CharAt(0)) && (0==text.Length())){
|
||||
//tada! our special case! Treat it like an empty start tag...
|
||||
aToken->SetEmpty(PR_TRUE);
|
||||
theRecycler->RecycleToken(theToken);
|
||||
|
||||
Reference in New Issue
Block a user