Adding support for DOCTYPE.
Also, fix for bug 13566. git-svn-id: svn://10.0.0.236/trunk@47593 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -873,6 +873,12 @@ void nsHTMLContentSinkStream::AddIndent()
|
||||
void nsHTMLContentSinkStream::AddStartTag(const nsIParserNode& aNode)
|
||||
{
|
||||
eHTMLTags tag = (eHTMLTags)aNode.GetNodeType();
|
||||
|
||||
if(tag==eHTMLTag_mdo) {
|
||||
Write("<!"); // mdo => Markup Declaration Open.
|
||||
return;
|
||||
}
|
||||
|
||||
const nsString& name = aNode.GetText();
|
||||
nsString tagName;
|
||||
|
||||
@@ -960,6 +966,13 @@ void nsHTMLContentSinkStream::AddEndTag(const nsIParserNode& aNode)
|
||||
{
|
||||
tagName = "--";
|
||||
}
|
||||
else if(tag == eHTMLTag_mdo)
|
||||
{
|
||||
// mod => Markup Declaration Open, i.e., "<!"
|
||||
Write(kGreaterThan);
|
||||
Write(NS_LINEBREAK);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
tagName = nsHTMLTags::GetStringValue(tag);
|
||||
@@ -1169,6 +1182,8 @@ nsHTMLContentSinkStream::AddDocTypeDecl(const nsIParserNode& aNode, PRInt32 aMod
|
||||
#ifdef VERBOSE_DEBUG
|
||||
DebugDump("<",aNode.GetText(),(mNodeStackPos)*2);
|
||||
#endif
|
||||
|
||||
Write("<!");
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user