- 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.
This commit is contained in:
@@ -1907,3 +1907,29 @@ const nsParserError * CErrorToken::GetError(void)
|
||||
{
|
||||
return mError;
|
||||
}
|
||||
|
||||
// Doctype decl token
|
||||
|
||||
CDoctypeDeclToken::CDoctypeDeclToken() : CHTMLToken(eHTMLTag_unknown) {
|
||||
}
|
||||
|
||||
const char* CDoctypeDeclToken::GetClassName(void) {
|
||||
return "doctype";
|
||||
}
|
||||
|
||||
PRInt32 CDoctypeDeclToken::GetTokenType(void) {
|
||||
return eToken_doctypeDecl;
|
||||
}
|
||||
|
||||
// XML decl token
|
||||
|
||||
CXMLDeclToken::CXMLDeclToken() : CHTMLToken(eHTMLTag_unknown) {
|
||||
}
|
||||
|
||||
const char* CXMLDeclToken::GetClassName(void) {
|
||||
return "xmldecl";
|
||||
}
|
||||
|
||||
PRInt32 CXMLDeclToken::GetTokenType(void) {
|
||||
return eToken_xmlDecl;
|
||||
}
|
||||
Reference in New Issue
Block a user