W3C home > Mailing lists > Public > public-webapi@w3.org > March 2006

Re: ISSUE-40: DOM3EV: does dispatchEvent accept foreign Event objects?

From: Jonas Sicking <jonas@sicking.cc>
Date: Wed, 15 Mar 2006 15:57:41 -0800
Message-ID: <4418A9F5.9070704@sicking.cc>
To: Web APIs WG <public-webapi@w3.org>

Web APIs Issue Tracker wrote:
> ISSUE-40: DOM3EV: does dispatchEvent accept foreign Event objects?
> 
> http://www.w3.org/2005/06/tracker/webapi/issues/40
> 
> Raised by: Bjoern Hoehrmann
> On product: DOM 3 Events
> 
> What should we say about the following case, where document1 and
> document2 are two different Document objects?
> 
>   document2.dispatchEvent(document1.createEvent(...))
> 
> We currently don't discuss this at all.

I think we should allow this. I think we will otherwise end up in the 
same situation that we are in now with the WRONG_DOCUMENT_ERROR 
exception and moving nodes between documents. I.e. that the spec says 
that something isn't permitted, but implementations allow it anyway.

/ Jonas
Received on Wednesday, 15 March 2006 23:57:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:53 GMT