- Move AddDocTypeDecl method from nsIXMLContentSink to nsIContentSink.
- Fix bug 8607 by passing the XML decl and the doctype decl from the expat tokenizer to the XML DTD. git-svn-id: svn://10.0.0.236/trunk@41106 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1140,6 +1140,21 @@ nsHTMLContentSinkStream::AddProcessingInstruction(const nsIParserNode& aNode){
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
/**
|
||||
* This gets called by the parser when it encounters
|
||||
* a DOCTYPE declaration in the HTML document.
|
||||
*/
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsHTMLContentSinkStream::AddDocTypeDecl(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 comment node to the current container in the content
|
||||
|
||||
Reference in New Issue
Block a user