W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2009

Re: convertKeyIdentifier

From: Cameron McCormack <cam@mcc.id.au>
Date: Wed, 23 Sep 2009 10:13:19 +1000
To: Anne van Kesteren <annevk@opera.com>
Cc: Doug Schepers <schepers@w3.org>, www-dom@w3.org
Message-ID: <20090923001318.GA19820@wok.mcc.id.au>
Anne van Kesteren:
> Furthermore I think putting createEvent on Document was a mistake in
> to begin with. Especially with the design we have now where DOM
> events are often used outside the context of documents. (Think of
> e.g. Web Workers.)

I guess you’re saying it should really be WindowEvent rather than
DocumentEvent.  Then it would make sense to have

  WorkerUtils implements WindowEvent;

in Web Workers.  (Well, we could do that now, but it would be strange to
have createEvent() on Document in regular windows but on the global
object in workers.)


Maybe we should also have:

  [Constructor]
  interface UIEvent : Event {
    // …
  };

etc.

-- 
Cameron McCormack ≝ http://mcc.id.au/
Received on Wednesday, 23 September 2009 00:14:00 GMT

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