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

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

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


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

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