Fix for bug 6069. The ownerDocument for a Document node is now null.

git-svn-id: svn://10.0.0.236/trunk@30646 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
vidur%netscape.com
1999-05-07 01:30:30 +00:00
parent 7940e684ed
commit d3101412a1
2 changed files with 4 additions and 2 deletions

View File

@@ -2139,7 +2139,8 @@ nsDocument::CloneNode(PRBool aDeep, nsIDOMNode** aReturn)
NS_IMETHODIMP
nsDocument::GetOwnerDocument(nsIDOMDocument** aOwnerDocument)
{
return QueryInterface(kIDOMDocumentIID, (void **)aOwnerDocument);
*aOwnerDocument = nsnull;
return NS_OK;
}
nsresult nsDocument::GetListenerManager(nsIEventListenerManager **aInstancePtrResult)

View File

@@ -2139,7 +2139,8 @@ nsDocument::CloneNode(PRBool aDeep, nsIDOMNode** aReturn)
NS_IMETHODIMP
nsDocument::GetOwnerDocument(nsIDOMDocument** aOwnerDocument)
{
return QueryInterface(kIDOMDocumentIID, (void **)aOwnerDocument);
*aOwnerDocument = nsnull;
return NS_OK;
}
nsresult nsDocument::GetListenerManager(nsIEventListenerManager **aInstancePtrResult)