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:
- Re: ISSUE-118 (dispatchEvent links): Consider allowing dispatchEvent for generic event duplication for links [DOM3 Events] (from simonp@opera.com on 2010-07-22)
- Re: ISSUE-118 (dispatchEvent links): Consider allowing dispatchEvent for generic event duplication for links [DOM3 Events] (from ian@hixie.ch on 2010-07-22)
- Re: ISSUE-118 (dispatchEvent links): Consider allowing dispatchEvent for generic event duplication for links [DOM3 Events] (from simonp@opera.com on 2010-07-22)
- Re: ISSUE-118 (dispatchEvent links): Consider allowing dispatchEvent for generic event duplication for links [DOM3 Events] (from ian@hixie.ch on 2010-07-21)
- 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:42Display change log