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

RE: "DOM4 Events" Proposal (was: Spec proposals for Event constructors)

From: Jacob Rossi <Jacob.Rossi@microsoft.com>
Date: Tue, 18 Oct 2011 17:33:36 +0000
To: Kentaro Hara <haraken@chromium.org>
CC: "www-dom@w3.org" <www-dom@w3.org>, "schepers@w3.org" <schepers@w3.org>, Anne van Kesteren <annevk@opera.com>, Dominic Cooney <dominicc@chromium.org>, Adrian Bateman <adrianba@microsoft.com>
Message-ID: <D0BC8E77E79D9846B61A2432D1BA4EAE035A6A36@TK5EX14MBXC288.redmond.corp.microsoft.com>
Thanks! I’ll include it in the next update to the proposal.

From: haraken@google.com [mailto:haraken@google.com] On Behalf Of Kentaro Hara
Sent: Monday, October 17, 2011 5:55 AM
To: Jacob Rossi
Cc: www-dom@w3.org; schepers@w3.org; Anne van Kesteren; Dominic Cooney; Adrian Bateman
Subject: Re: "DOM4 Events" Proposal (was: Spec proposals for Event constructors)

Dear Jacob,

Thank you very much for writing the spec draft!
The current draft looks great to me.


typo (semicolon after 'view' is missing):

dictionary UIEventInit : EventInit {
    views::AbstractView view;
    long detail;
}


Regards


2011年10月14日5:22 Jacob Rossi <Jacob.Rossi@microsoft.com<mailto:Jacob.Rossi@microsoft.com>>:
Kentaro,

Thanks for helping get the ball rolling on this! I think event constructors are a great idea. DOM4 has pioneered this for the Event interface [1]. However, we should do this across all event interfaces. So we need a spec for the remaining ones. I think this, potentially along with other ideas we've had in the past [2, 3], will make up a great new spec to extend DOM L3 Events.

I've taken your suggestions and drafted them up as a part of a ""DOM4 Events" proposal:

http://html5labs.com/dom4events/


I'd like to solicit feedback on what I've written so far, other possible features to include in scope for this proposal, and what folks think about bringing this in as a new specification in Web Apps. I'll start some threads with a couple questions I had while writing this proposal.

Thanks,

Jacob

[1] http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#constructing-events

[2] http://www.w3.org/2008/webapps/wiki/DOM3Events#Proposals

[3] http://www.w3.org/2008/webapps/wiki/DOM_Wishlist



> -----Original Message-----
> From: Anne van Kesteren [mailto:annevk@opera.com<mailto:annevk@opera.com>]
> Sent: Thursday, September 29, 2011 6:36 AM
> To: www-dom@w3.org<mailto:www-dom@w3.org>; schepers@w3.org<mailto:schepers@w3.org>; Jacob Rossi; Kentaro Hara
> Cc: Dominic Cooney
> Subject: Re: Spec proposals for Event constructors
>
> On Tue, 27 Sep 2011 15:56:43 +0200, Kentaro Hara <haraken@chromium.org<mailto:haraken@chromium.org>>
> wrote:
> > We have been working on implementing constructors for Events:
> >
> > https://bugs.webkit.org/show_bug.cgi?id=67824

> >
> > However, some Events do not yet have the specs for their constructors. We
> > would be happy if you could take a look at our spec proposals for the
> > following DOM Level 3 Events:
> >
> > http://www.w3.org/Bugs/Public/show_bug.cgi?id=14050

> >
> > http://www.w3.org/Bugs/Public/show_bug.cgi?id=14051

> >
> > http://www.w3.org/Bugs/Public/show_bug.cgi?id=14052

> >
> > http://www.w3.org/Bugs/Public/show_bug.cgi?id=14053

> >
> > http://www.w3.org/Bugs/Public/show_bug.cgi?id=14054

> >
> > http://www.w3.org/Bugs/Public/show_bug.cgi?id=14055

>
> It would also be great if for the interfaces that are newly introduced we
> do not introduce a init*Event method. CompositionEvent, TextEvent,
> WheelEvent, can probably have it removed. UIEvent, MouseEvent, and
> KeyboardEvent should probably carry a note about their init*Event methods
> being strongly discouraged, as we cannot really remove those I think.
>
>
> --
> Anne van Kesteren
> http://annevankesteren.nl/




--
Kentaro Hara, Tokyo, Japan (http://haraken.info<http://haraken.info/>)
Received on Tuesday, 18 October 2011 17:34:09 GMT

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