eliom icon indicating copy to clipboard operation
eliom copied to clipboard

Add `toggle` and `beforetoggle` events for the `popover` API.

Open SylvainBoilard opened this issue 1 year ago • 1 comments
trafficstars

Hello,

This PR initially added support for toggle event handlers in details elements and was extended to support both toggle and beforetoggle events for the popover API.

See:

  • https://html.spec.whatwg.org/multipage/popover.html ;
  • https://html.spec.whatwg.org/multipage/indices.html#event-toggle ;
  • https://html.spec.whatwg.org/multipage/interactive-elements.html#the-details-element ;
  • https://developer.mozilla.org/en-US/docs/Web/API/Popover_API ;
  • https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details#events ;
  • https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details#attributes .

See also these related PRs:

Please let me know of any issues.

Cheers,

SylvainBoilard avatar Nov 04 '24 21:11 SylvainBoilard