Reporting better nsresults to DOM methods.

git-svn-id: svn://10.0.0.236/trunk@46440 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
vidur%netscape.com
1999-09-08 23:18:27 +00:00
parent 3f45ba68ae
commit bb6ee90548
18 changed files with 346 additions and 120 deletions

View File

@@ -27,6 +27,7 @@
#include "nsVoidArray.h"
#include "nsINameSpaceManager.h"
#include "nsITextContent.h"
#include "nsDOMError.h"
extern const nsIID kIDOMCharacterDataIID;
extern const nsIID kIDOMNodeIID;
@@ -77,17 +78,17 @@ struct nsGenericDOMDataNode {
}
nsresult InsertBefore(nsIDOMNode* aNewChild, nsIDOMNode* aRefChild,
nsIDOMNode** aReturn) {
return NS_ERROR_FAILURE;
return NS_ERROR_DOM_NO_MODIFICATION_ALLOWED_ERR;
}
nsresult ReplaceChild(nsIDOMNode* aNewChild, nsIDOMNode* aOldChild,
nsIDOMNode** aReturn) {
return NS_ERROR_FAILURE;
return NS_ERROR_DOM_NO_MODIFICATION_ALLOWED_ERR;
}
nsresult RemoveChild(nsIDOMNode* aOldChild, nsIDOMNode** aReturn) {
return NS_ERROR_FAILURE;
return NS_ERROR_DOM_NO_MODIFICATION_ALLOWED_ERR;
}
nsresult AppendChild(nsIDOMNode* aNewChild, nsIDOMNode** aReturn) {
return NS_ERROR_FAILURE;
return NS_ERROR_DOM_NO_MODIFICATION_ALLOWED_ERR;
}
nsresult GetOwnerDocument(nsIDOMDocument** aOwnerDocument);