W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2011

Re: Conflicts between D3E and Web DOM Core

From: Glenn Maynard <glenn@zewt.org>
Date: Thu, 10 Mar 2011 10:45:08 -0500
Message-ID: <AANLkTimfWJY9yAxrFLPkzB8cLCiN1LaYQ_A0SLFaFG5F@mail.gmail.com>
To: Anne van Kesteren <annevk@opera.com>
Cc: Olli Pettay <Olli.Pettay@helsinki.fi>, Olli@pettay.fi, "www-dom@w3.org" <www-dom@w3.org>, Jacob Rossi <jrossi@microsoft.com>
On Thu, Mar 10, 2011 at 10:10 AM, Anne van Kesteren <annevk@opera.com> wrote:
> Because the initEvent() method in this case does not necessarily have to
> change anything. When invoked it could leave the object completely
> unchanged. Having it unset some special flag ("initEvent() invoked") would
> serve no purpose.

FWIW, the requirement to call initEvent seemed directly tied in with
the requirement to have a non-empty event type.  DOM Events requires
the latter, so there's no additional restriction imposed by requiring
initEvent--it's implied anyway--and it doesn't introduce additional
state, since checking for an empty event type implicitly checks
whether initEvent was called.

Since DOM Core does allow the null string as an event type (consistent
with most browsers), it makes sense for the initEvent requirement can
go away with it.  At that point, it's just pointless additional state.

-- 
Glenn Maynard
Received on Thursday, 10 March 2011 15:45:42 GMT

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