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

[DOM3Events] Oustanding issues (was: [DOM3Events] CR)

From: Jacob Rossi <Jacob.Rossi@microsoft.com>
Date: Thu, 13 Oct 2011 00:54:26 +0000
To: Anne van Kesteren <annevk@opera.com>, Doug Schepers <schepers@w3.org>
CC: public-webapps <public-webapps@w3.org>, Adrian Bateman <adrianba@microsoft.com>, Arthur Barstow <art.barstow@nokia.com>, "Chaals McCathieNevile" <chaals@opera.com>, "www-dom@w3.org" <www-dom@w3.org>
Message-ID: <D0BC8E77E79D9846B61A2432D1BA4EAE0356A9E4@TK5EX14MBXC288.redmond.corp.microsoft.com>
Hi Anne,

Talking with Doug this morning, it seems he didn't have a chance to reply to your mail below since he's been pretty busy. I've provided responses below inline, sorry for the delay!



> -----Original Message-----
> From: Anne van Kesteren [mailto:annevk@opera.com]
> Sent: Friday, September 09, 2011 3:00 AM
> To: Doug Schepers; Jacob Rossi
> Cc: public-webapps; Adrian Bateman; Arthur Barstow; Chaals McCathieNevile;
> www-dom@w3.org
> Subject: Re: [DOM3Events] CR
> On Tue, 06 Sep 2011 21:04:33 +0200, Jacob Rossi
> <Jacob.Rossi@microsoft.com> wrote:
> > All of the Last Call issues formally raised in our Tracker have been
> > addressed as indicated in our Disposition of Comments [1]. If there
> > are outstanding issues, then they're likely threads on www-dom that
> > got lost in the shuffle. Kindly, can you be more explicit and
> > enumerate the outstanding issues you're awaiting responses for?
> It's hard to tell since instead of pointing to the email where I raised the issue
> you point to a tracker issue. I have no idea what the relation is between the two.
> But e.g. I do not have a reply to these emails in my inbox as far as I can
> tell:
>    http://lists.w3.org/Archives/Public/www-dom/2011JanMar/0054.html

IE and Gecko match the spec. Opera and Webkit do not match the spec--but that seems like a bug.  I'm not sure why calling preventDefault() on one dispatch of an event should cancel the default action of a second dispatch of that event.  Furthermore, applications don't have the ability to reset this flag themselves. If implementations don't reset this flag for them, then there's no way to separate the default actions between multiple dispatches of the event (cancelling dispatch A always also cancels dispatch B). However, if implementations do reset the flag then the application can always elect to take into consideration the return value of dispatch A when performing the default action of dispatch B.

>    http://lists.w3.org/Archives/Public/www-dom/2011JanMar/0065.html

Whether D3E needs EventException was covered in the discussion for ISSUE-179 (http://www.w3.org/2008/webapps/track/issues/179). 

>    http://lists.w3.org/Archives/Public/www-dom/2011JanMar/0066.html

The efforts DOM4 makes here are great extensions to DOM L3 Events. 

>    http://lists.w3.org/Archives/Public/www-dom/2011JanMar/0067.html

I had difficulty testing in Opera (probably something silly I'm doing).  The spec indicates that calling preventDefault() should have no effect on non-cancellable events (therefore defaultPrevented is still false). But at least Webkit, IE, and Gecko have interoperable implementations that match the spec. 

   var e = document.createEvent("Event")
   e.initEvent("test", false, false);
   document.addEventListener("test", function(e) { 
   e = document.createEvent("Event")
   e.initEvent("test", false, true);

>    http://lists.w3.org/Archives/Public/www-dom/2011JanMar/0068.html

I could see a future spec allow this given a good set of scenarios. DOM3 I believe DOM4 does this. But I don't see this as a requirement

>    http://lists.w3.org/Archives/Public/www-dom/2011JulSep/0122.html

Ah, yes, "may only be called" is a bit confusing. A clearer statement is "must be called"--which is the intent. Otherwise, if you don't initialize the event then you'll get an exception when you try to dispatch it. I think this is a worthy grammatical clarification, so I've updated the spec to be clearer. 

>    http://lists.w3.org/Archives/Public/www-dom/2011JulSep/0131.html

Since this one's a bit longer, I'll reply separately on it.  

> Furthermore given the normative changes that have occurred (e.g. to
> event.type) another Last Call is needed where I wanted to note the issues I
> noted elsewhere in this thread, regarding not using Web IDL normatively like
> all our other drafts if they are not addressed by then.
There has been a Last Call since the normative changes to Event Type:

Revision 1.189 made the changes to event.type
Revision 1.200 published the spec for the most recent Last Call

According to the CVS log, all changes since that Last Call draft have been editorial with the exception of Revision 1.204. However, that change was more of a clarification which matches all implementations.

> > [1] http://dev.w3.org/2006/webapi/DOM-Level-3-Events/dc.html

> --
> Anne van Kesteren
> http://annevankesteren.nl/

Received on Thursday, 13 October 2011 00:55:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:36:59 UTC