ISSUE-118: Consider allowing dispatchEvent for generic event duplication for links

dispatchEvent links

Consider allowing dispatchEvent for generic event duplication for links

State:
CLOSED
Product:
HISTORICAL: DOM3 Events [All Bugs and Issues use Bugzilla: http://tinyurl.com/Bugs-DOM3Events]
Raised by:
Doug Schepers
Opened on:
2010-07-21
Description:
Simon Pieters wrote in <http://lists.w3.org/Archives/Public/www-dom/2010AprJun/0041.html> :
[[
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.

I think it seems like a neat thing to be able to do, for making table rows or <canvas> clickable. (However the event shouldn't be a 'trusted' event in that case, of course.) To make it work today you'd have to create a new event and copy over all properties, which is annoying.
]]
Related Actions Items:
No related actions
Related emails:
  1. Re: ISSUE-118 (dispatchEvent links): Consider allowing dispatchEvent for generic event duplication for links [DOM3 Events] (from simonp@opera.com on 2010-07-22)
  2. Re: ISSUE-118 (dispatchEvent links): Consider allowing dispatchEvent for generic event duplication for links [DOM3 Events] (from ian@hixie.ch on 2010-07-22)
  3. Re: ISSUE-118 (dispatchEvent links): Consider allowing dispatchEvent for generic event duplication for links [DOM3 Events] (from simonp@opera.com on 2010-07-22)
  4. Re: ISSUE-118 (dispatchEvent links): Consider allowing dispatchEvent for generic event duplication for links [DOM3 Events] (from ian@hixie.ch on 2010-07-21)
  5. ISSUE-118 (dispatchEvent links): Consider allowing dispatchEvent for generic event duplication for links [DOM3 Events] (from sysbot+tracker@w3.org on 2010-07-21)

Related notes:

Seems like an edge case for which a workaround exists. Mixing trusted and untrusted events seems dangerous and overly complex.

Doug Schepers, 18 Aug 2010, 18:58:42

Display change log ATOM feed


Chair, Staff Contact
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: 118.html,v 1.1 2016/01/25 10:26:13 carine Exp $