W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2009

Re: Window Modes todo

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 27 Jul 2009 09:59:46 -0400
Message-ID: <4A6DB2D2.7070309@mit.edu>
To: Robin Berjon <robin@berjon.com>
CC: "public-webapps@w3.org" <public-webapps@w3.org>, "www-dom@w3.org" <www-dom@w3.org>, Olli Pettay <Olli.Pettay@helsinki.fi>
Robin Berjon wrote:
> Do other implementers care to chime in with what they do, and if they'd 
> find this change acceptable?

As I recall Gecko's behavior, it works more or less like this:

1)  Properties listed as readonly in the DOM 2 Events IDL are in
     fact readonly.
2)  init*Event may be called multiple times, at any point when the
     event is not in the middle of being dispatched.
3)  dispatchEvent may be called multiple times, at any point when
     the event is not in the middle of being dispatched.

I believe #2 is a violation of the DOM 2 Events specification; I'm not 
quite sure why we allow that.  I think there were some historical 
reasons, but they might not be relevant anymore.  Olli might know more. 
  The "when the event is not in the middle of being dispatched" for 
dispatchEvent is probably technically a violation of that specification 
too, though it's more likely that the issue was simply not considered 
during the authoring of the specification.

-Boris

P.S.  I hope I understood the question correctly...
Received on Monday, 27 July 2009 14:00:48 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:33 GMT