W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2001

exceptions in DOM

From: Jan-Arve Saether <jana@birdstep.org>
Date: Fri, 19 Oct 2001 10:01:34 +0200
Message-ID: <9BF5DD8B8F3CD411959500B0D020ED3E2B7100@EXCHANGE>
To: "'www-dom@w3.org'" <www-dom@w3.org>
What exception should be raised if you for instance call 
Comment::replaceChild or Comment::insertBefore (probably not only these).

Should my implementation raise HIERARCHY_REQUEST_ERR or NOT_FOUND_ERR?

I guess it is NOT_FOUND_ERR (?) (Since a comment can't have children)

I can't find anything about this issue in the specification...

Best regards
Jan-Arve Sæther
Received on Friday, 19 October 2001 04:17:43 GMT

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