Create HTML-html-element not a root part

git-svn-id: svn://10.0.0.236/trunk@9564 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp%netscape.com
1998-09-08 22:38:17 +00:00
parent 3ab02b9896
commit 9d8f9aaffa
4 changed files with 12 additions and 4 deletions

View File

@@ -1315,10 +1315,12 @@ HTMLContentSink::Init(nsIDocument* aDoc,
NS_ADDREF(aContainer);
// Make root part
nsresult rv = NS_NewRootPart(&mRoot, mDocument);
nsresult rv = NS_NewHTMLHtmlElement(&mRoot, nsHTMLAtoms::html);
if (NS_OK != rv) {
return rv;
}
mRoot->SetDocument(mDocument);
mDocument->SetRootContent(mRoot);
// Make head part
nsIAtom* atom = NS_NewAtom("HEAD");