You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the spec says that a reset button should always work to open a popover. This is implemented by Firefox.
Chromium however does not allow popovertarget to work on a reset button/input in a form element.
Safari does not allow it to work on a reset button in a form BUT does on a reset input. This appears to be due to the same bug that prevents explicit type=button buttons from working in a form, so I'm not sure it's deliberate that reset buttons don't work.
But given that image buttons work I don't see why reset buttons shouldn't work. Either we restrict it to plain buttons in some way (which currently don't seem to appear as a concept from a quick scan so unclear if that's good) or we stick with what we have.
if the image button is acting as a submit button though, then popover shouldn't work with it.
Seems like an accident that reset wasn't called out. We had specifically talked about how form actions (submission, but also resetting) should take priority over popover behavior.
Oops, I missed that image buttons are submit buttons. I suppose we could introduce a reset button concept as well and exclude them in a similar fashion. I kinda wish we didn't have the "form owner" check, but so be it.
What is the issue with the HTML Standard?
Currently the spec says that a reset button should always work to open a popover. This is implemented by Firefox.
Chromium however does not allow popovertarget to work on a reset button/input in a form element.
Safari does not allow it to work on a reset button in a form BUT does on a reset input. This appears to be due to the same bug that prevents explicit type=button buttons from working in a form, so I'm not sure it's deliberate that reset buttons don't work.
https://wpt.live/html/semantics/popovers/button-type-reset-popovertarget.tentative.html - this test also disagrees with the spec.
So TLDR should
<form><button type="reset" popovertarget="popover">Reset</button>
work?The text was updated successfully, but these errors were encountered: