okpy / ok

ok.py supports programming projects by running tests, tracking progress, and assisting in debugging.
Apache License 2.0
336 stars 84 forks source link

Fix download and raw buttons on Firefox #1316

Closed c-w closed 6 years ago

c-w commented 6 years ago

On Firefox, the <button> element wrapping the <a> link swallows the click event which leads the download and raw buttons to not perform any action. Note that this same behavior does not reproduce on Chrome. Switching the <button> to a <div> fixes the behavior on Firefox while still maintaining the same styling as before and also works on Chrome.

This issue was reported by @taupalosaurus