Bug 195945: Display XSLT-generated HTML-pages in standards mode

r=peterv sr=bz


git-svn-id: svn://10.0.0.236/trunk@138891 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sicking%bigfoot.com 2003-03-05 00:57:14 +00:00
parent f29015fe37
commit d3b16e86ae

View File

@ -758,6 +758,13 @@ txMozillaXMLOutput::createResultDocument(const nsAString& aName, PRInt32 aNsID,
mObserver->OnDocumentCreated(mDocument);
}
// Do this after calling OnDocumentCreated to ensure that the
// PresShell/PresContext has been hooked up and get notified.
nsCOMPtr<nsIHTMLDocument> htmlDoc = do_QueryInterface(doc);
if (htmlDoc) {
htmlDoc->SetCompatibilityMode(eCompatibility_FullStandards);
}
// Add a doc-type if requested
if (!mOutputFormat.mSystemId.IsEmpty()) {
nsCOMPtr<nsIDOMDOMImplementation> implementation;