W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2010

Re: [dom-events] dispatchEvent()ing a UA-dispatched event

From: Stewart Brodie <stewart.brodie@antplc.com>
Date: Thu, 6 May 2010 10:18:38 +0100
To: <www-dom@w3.org>
Message-ID: <3b09f922ce41a5a55a71ebe12592b5da441fa1dd@localhost>
Simon Pieters <simonp@opera.com> wrote:

> Hi,
> 
> Is it defined what should happen in the following case?

> <div onclick="document.links[0].dispatchEvent(event)">click me</div>
> <a href="http://example.org/">test</a>
> 
> It seems Firefox and Opera throw an exception, while WebKit allows the  
> event to be dispatched.

Yes.  It's quite clearly stated in the documentation for dispatchEvent.

It must be a DISPATCH_REQUEST_ERR exception


-- 
Stewart Brodie
Team Leader - ANT Galio Browser
ANT Software Limited
Received on Thursday, 6 May 2010 09:19:12 GMT

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