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: Sun, 13 Mar 2011 13:58:00 -0400
Message-ID: <AANLkTikEbNsCXXOc_2YLZMv+fOmdNu8PJmt8Dj7+vtKf@mail.gmail.com>
To: Jonas Sicking <jonas@sicking.cc>
Cc: Jacob Rossi <jrossi@microsoft.com>, Anne van Kesteren <annevk@opera.com>, Olli Pettay <Olli.Pettay@helsinki.fi>, "Olli@pettay.fi" <Olli@pettay.fi>, "www-dom@w3.org" <www-dom@w3.org>
On Sun, Mar 13, 2011 at 1:21 PM, Jonas Sicking <jonas@sicking.cc> wrote:
>> Not all.  WebKit doesn't check whether initEvent was called; it just
>> checks whether event.type != "".  If it's to allow e.type == "", it
>> would need a new flag indicating whether initEvent was called.
> I don't see a reason to allow empty string as event name. I don't see
> a strong reason to forbid it either, but since we need some sort of
> state which indicates "event has been initied" then checking for empty
> type seems fine. So we could make initEvent throw if called with an
> empty type.

If initEvent is to stay required, I think this is best.  All else
equal, reducing hidden state is a clear win.

Glenn Maynard
Received on Sunday, 13 March 2011 17:58:33 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:17 UTC