WICG / close-watcher

A web API proposal for watching for close requests (e.g. Esc, Android back button, ...)
https://html.spec.whatwg.org/multipage/interaction.html#close-requests-and-close-watchers
71 stars 5 forks source link

Remove check for the open attribute before closing dialog #12

Closed josepharhar closed 2 years ago

josepharhar commented 2 years ago

The dialog closing steps already check for the open attribute before continuing, so I think this check is redundant: https://html.spec.whatwg.org/multipage/interactive-elements.html#close-the-dialog

I noticed this redudant check while implementing the dialog integration.


Preview | Diff