Re: CustomEvent

Hi, Cameron-

Cameron McCormack wrote (on 5/8/11 7:03 PM):
> Olli Pettay:
>>  >  CustomEvent.detail is currently DOMObject. I think it would make
>>  >  more sense if it was type 'any'.
>
> Doug Schepers:
>>  I'd be fine with that, but I don't think OMG IDL can express type
>>  'any'.  We could put this in the Web IDL.  Maybe type 'Object' would
>>  work for the regular IDL?
>
> OMG IDL does have an “any” type (section 7.11.1.7 of
> http://www.omg.org/cgi-bin/doc?formal/08-01-04.pdf) so I think it should
> be safe to use it even if you haven’t migrated to Web IDL yet.

Okay, great!  I've made this change, then.

I've also added it to the DOM3 Events Web IDL as well, so it would be 
nice if you did add it to the Web IDL spec.


> DOMObject is just typedefed to Object in DOM 3 Core so using Object in
> preference to it wouldn’t gain you anything.

Gotcha.

Regards-
-Doug Schepers
W3C Team Contact, SVG, WebApps, and Web Events WGs

Received on Monday, 9 May 2011 00:23:40 UTC