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

Re: [DOMCore] Non-nullable objects

From: Cameron McCormack <cam@mcc.id.au>
Date: Tue, 24 May 2011 10:59:51 +1200
To: Ms2ger <ms2ger@gmail.com>
Cc: "www-dom@w3.org" <www-dom@w3.org>
Message-ID: <20110523225951.GG18297@wok.mcc.id.au>
Ms2ger:
> As Cameron has made objects non-nullable by default [1], I've
> updated DOM Core accordingly. [2] I probably got some changes wrong,
> and would appreciate review of this change.

The detail argument of CustomEvent.initCustomEvent() should be
“object?”.

I’m assuming that EventTarget.{add,remove}EventListener need to do
nothing when passed null for their EventListener because existing
content assumes it?  If not, I’d say it doesn’t make sense to allow
null to be passed, and make the type “EventListener”.

The doctype argument to DOMImplementation.createDocument() should be
“DocumentType?”.

Looks good otherwise.

-- 
Cameron McCormack ≝ http://mcc.id.au/
Received on Monday, 23 May 2011 23:00:21 GMT

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