PR-DOM-Level-1-19980818 question

DOMExceptions are thrown for a variety of reasons.
What is thrown when a parameter to a method is null?

For instance, in the method appendChild in the Node interface,
what happens when newChild == null?


    public Node appendChild(Node newChild) {
	....
    }

Before the WRONG_DOCUMENT_ERR condition can be tested one must
first make sure the argument is not null.


Richard Emberson

Received on Wednesday, 26 August 1998 13:00:28 UTC