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?

Fixed. 
See
http://www.w3.org/TR/2000/CR-DOM-Level-2-20000307/range.html#Level-2-Range-idl

> (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.

Philippe.
Received on Wednesday, 8 March 2000 10:40:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:47 GMT