fix bug 5094

This commit is contained in:
rickg@netscape.com
1999-05-27 10:32:33 +00:00
parent 09ff8f6263
commit d2a85a77c6
2 changed files with 2 additions and 8 deletions
+1 -4
View File
@@ -769,7 +769,6 @@ PRBool nsParser::IsValidFragment(const nsString& aSourceBuffer,nsITagStack& aSta
then we have to assume that the fragment is valid (at least in part)
************************************************************************************/
/*------------------------ Comment out for now ----------------------------
nsAutoString theContext;
PRUint32 theCount=aStack.GetSize();
PRUint32 theIndex=0;
@@ -786,7 +785,7 @@ PRBool nsParser::IsValidFragment(const nsString& aSourceBuffer,nsITagStack& aSta
if(theBuffer.Length()){
//now it's time to try to build the model from this fragment
nsString2 theOutput("",eOneByte);
nsString theOutput("");
nsIHTMLContentSink* theSink=0;
nsresult theResult=NS_New_HTML_ContentSinkStream(&theSink,&theOutput,PR_FALSE,PR_FALSE);
SetContentSink(theSink);
@@ -801,8 +800,6 @@ PRBool nsParser::IsValidFragment(const nsString& aSourceBuffer,nsITagStack& aSta
}
}
return result;
*--------------------------------------------------------------------------*/
return PR_FALSE;
}