The problem is we shouldn't allow preventDefault to button element button type[1]. Should follow the spec[2] `do nothing`. [1] https://searchfox.org/mozilla-central/rev/3483fb259b4edbe4594cfcc3911db97d5441b67d/dom/html/HTMLButtonElement.cpp#261 [2] https://html.spec.whatwg.org/#attr-button-type-button-state
Bug 1598684 Comment 2 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
It has a button element with button type under an a element with href. The problem is it shouldn't preventDefault to the button element with button type[1]. Should follow the spec[2] said `do nothing`. [1] https://searchfox.org/mozilla-central/rev/3483fb259b4edbe4594cfcc3911db97d5441b67d/dom/html/HTMLButtonElement.cpp#261 [2] https://html.spec.whatwg.org/#attr-button-type-button-state