зеркало из https://github.com/mozilla/pjs.git
Bug 195945: Display XSLT-generated HTML-pages in standards mode
r=peterv sr=bz
This commit is contained in:
Родитель
5e85228712
Коммит
426cd10480
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче