sync with new nsString2 API

This commit is contained in:
rickg@netscape.com
1999-04-21 04:02:14 +00:00
parent 1a01e3ea99
commit 93b02e8dd9
15 changed files with 23 additions and 23 deletions
+1 -1
View File
@@ -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);