I just noticed that dispatching `DOMActivate` for button and input ([code](https://searchfox.org/mozilla-central/rev/4c065f1df299065c305fb48b36cdae571a43d97c/dom/html/HTMLButtonElement.cpp#196-218)) should probably be part of activation behavior. Though we should look at when other browsers dispatch it.
Bug 1459231 Comment 3 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
~~I just noticed that dispatching `DOMActivate` for button and input ([code](https://searchfox.org/mozilla-central/rev/4c065f1df299065c305fb48b36cdae571a43d97c/dom/html/HTMLButtonElement.cpp#196-218)) should probably be part of activation behavior. Though we should look at when other browsers dispatch it.~~
~~I just noticed that dispatching `DOMActivate` for button and input ([code](https://searchfox.org/mozilla-central/rev/4c065f1df299065c305fb48b36cdae571a43d97c/dom/html/HTMLButtonElement.cpp#196-218)) should probably be part of activation behavior. Though we should look at when other browsers dispatch it.~~ Edit: here is a test, this works as expected ``` data:text/html,<button id=btn>test</button><script>btn.addEventListener("DOMActivate", e=> console.log(e.eventPhase))</script> ```