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

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 UTC