The oncancel property of the GlobalEventHandlers mixin is an event handler for processing cancel events sent to a <dialog> element.
The cancel event fires when the user indicates a wish to dismiss a <dialog>. This event handler prevents the event from bubbling, so any parent handlers are not notified of the event.