W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2011

Re: [DOMCore] [NoNull] annotation is not defined by WebIDL anymore

From: Ms2ger <ms2ger@gmail.com>
Date: Mon, 23 May 2011 17:51:20 +0200
Message-ID: <4DDA8278.6030700@gmail.com>
To: David Flanagan <dflanagan@mozilla.com>
CC: www-dom@w3.org
David,

On 05/20/2011 01:28 AM, David Flanagan wrote:
> The current DOM Core draft uses the [NoNull] annotation for
> insertBefore(), replaceChild(), removeChild() and appendChild(). But
> [NoNull] is no longer defined by WebIDL, apparently replaced by
> [TreatNullAs=...]
>
> More generally, both the DOM and WebIDL are vague about how null
> arguments are to be handled, and as near as I can tell, this is left up
> to the implementation. I'd like to suggest that these four [NoNull]
> annotations be replaced with prose that specify exactly what should
> happen for null (or undefined) arguments. My best guess about the
> appropriate behavior is throwing a DOMException with a code of
> NOT_FOUND_ERR.

Thanks for your comment. I've updated the specification to match 
WebIDL's new null handling. [1] I hope this addresses your comment.

Thanks
Ms2ger

[1] http://dvcs.w3.org/hg/domcore/rev/3a6c65b92d33
Received on Monday, 23 May 2011 15:51:50 GMT

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