W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2000

Re: DOM2 Range: set(Start|End)(After|Before) and null parents

From: Philippe Le Hegaret <plh@w3.org>
Date: Wed, 08 Mar 2000 15:40:29 +0000
Message-ID: <38C6746D.2EC55DAF@w3.org>
To: "L. David Baron" <dbaron@fas.harvard.edu>
CC: WWW DOM <www-dom@w3.org>
"L. David Baron" wrote:
> In the DOM2 Range, should the functions set(Start|End)(After|Before)
> [1] throw an exception if the parent of their refNode argument is
> null?  If so, which?


> (While I mention it, should setStart and setEnd throw an exception if
> the refNode is null?  The current spec only says it can't be null, not
> what to do if it is.)

No, the DOM never throws an exception in such case because we don't want
to deal with all possibilities (not enough memory, ...).Basically, you will
get a runtime exception.

Received on Wednesday, 8 March 2000 10:40:31 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:06 UTC