Fix for bug 207413: Midas: designMode = "on" fails for a newly created iframe

patch by jst
r=ere
sr=kin
This commit is contained in:
ere%atp.fi 2003-05-30 20:04:50 +00:00
Родитель ece05c4d2e
Коммит 85bf83d3ee
1 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -450,6 +450,11 @@ nsHTMLDocument::BaseResetToURI(nsIURI *aURL)
mBaseTarget.Truncate();
// Make the content type default to "text/html", we are a HTML
// document, after all. Once we start getting data, this may be
// changed.
mContentType = "text/html";
return rv;
}
@ -2497,10 +2502,6 @@ nsHTMLDocument::OpenCommon(nsIURI* aSourceURL)
return rv;
}
// Set the content type to "text/html" since we're always producing
// HTML when calling document.write().
mContentType = "text/html";
if (root) {
// Tear down the frames for the root element.
ContentRemoved(nsnull, root, 0);