Avoid the call to OpenHead and CloseHead with incorrect parserNode. b=182021, r=heikki, sr=jst

git-svn-id: svn://10.0.0.236/trunk@135841 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
harishd%netscape.com
2003-01-03 23:17:22 +00:00
parent e1cb593313
commit ba933c6526
22 changed files with 323 additions and 196 deletions

View File

@@ -66,6 +66,7 @@ public:
NS_IMETHOD SetParser(nsIParser* aParser);
NS_IMETHOD OpenContainer(const nsIParserNode& aNode);
NS_IMETHOD CloseContainer(const nsHTMLTag aTag);
NS_IMETHOD AddHeadContent(const nsIParserNode& aNode);
NS_IMETHOD AddLeaf(const nsIParserNode& aNode);
NS_IMETHOD AddProcessingInstruction(const nsIParserNode& aNode);
NS_IMETHOD AddComment(const nsIParserNode& aNode);
@@ -510,6 +511,16 @@ nsHTMLNullSink::CloseContainer(const nsHTMLTag aTag){
return NS_OK;
}
NS_IMETHODIMP
nsHTMLNullSink::AddHeadContent(const nsIParserNode& aNode){
#ifdef VERBOSE_DEBUG
DebugDump("<",aNode.GetText(),(mNodeStackPos)*2);
#endif
return NS_OK;
}
/**
* This gets called by the parser when you want to add
* a leaf node to the current container in the content