Open annevk opened 8 years ago
@hayatoito any thoughts on this?
I'm happy to tackle click()
and contextmenu
, but drag & drop seems like its own can of worms in that I'm not sure how well everything there matches implementations to begin with.
click()
, which matches Blink's current implementation.Synthetic contextmenu
event dispatching went away in e7e8c88ecdd7cdc96171f05ab6fe23b56dd48d8a. #2999 has a patch for synthetic mouse events. That leaves drag & drop.
@annevk I think the contextmenu event is unrelated to the menu element. It's basically a right-click event.
@domenic the commit I pointed to had the only text that actually ended up dispatching an event named contextmenu as far as I can tell.
(I suspect UI Events might (should) have similar text, but that's not the HTML Standard.)
So the remaining open question here is whether drag & drop events need to be composed. They are UI Events of sorts so that would suggest they should be, but there might be some complications I'm not aware of. Input welcome from @whatwg/components and whoever else has opinions.
Discussed this with @rniwa.
click()