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:
parent
f29015fe37
commit
d3b16e86ae
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user