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: Sat, 12 Mar 2011 18:02:39 -0500
Message-ID: <AANLkTimbqEgJhn0qsvJz_skchvxBB-_g43ct5fOOVaJm@mail.gmail.com>
To: Olli@pettay.fi
Cc: Olli Pettay <Olli.Pettay@helsinki.fi>, Jacob Rossi <jrossi@microsoft.com>, Anne van Kesteren <annevk@opera.com>, "www-dom@w3.org" <www-dom@w3.org>
On Sat, Mar 12, 2011 at 5:23 PM, Olli Pettay <Olli.Pettay@helsinki.fi> wrote:
> In Gecko the event is dispatched just normally in that case.
> But because the event isn't initialized to "", or null, or anything else, no
> listener for it can be called.

Gecko seems unique in having this state, where accessing event.type
before initEvent throws an exception.  I'd suggest it should be set to
"" initially, as other browsers do.

For example, this causes "for(x in ev) console.log(ev[x])" to fail in
cases that work in other browsers.

Glenn Maynard
Received on Saturday, 12 March 2011 23:03:12 UTC

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