This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23489 - OnBeforeUnloadEventHandlerNonNull should have a nullable return value.
Summary: OnBeforeUnloadEventHandlerNonNull should have a nullable return value.
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 19713
  Show dependency treegraph
 
Reported: 2013-10-14 14:41 UTC by Peter Van der Beken
Modified: 2013-11-13 22:45 UTC (History)
2 users (show)

See Also:


Attachments

Description Peter Van der Beken 2013-10-14 14:41:53 UTC
The prose about event processing for beforeunload says 'If the return value is null, then cancel the event.' However, the WebIDL definition for OnBeforeUnloadEventHandlerNonNull is |callback OnBeforeUnloadEventHandlerNonNull = DOMString (Event event);| which has a non-nullable DOMString return value. It should be |callback OnBeforeUnloadEventHandlerNonNull = DOMString? (Event event);|.
Comment 1 contributor 2013-11-13 22:45:45 UTC
Checked in as WHATWG revision r8282.
Check-in comment: OnBeforeUnloadEventHandler is supposed to allow null return values (and some markup error fixes, oops)
http://html5.org/tools/web-apps-tracker?from=8281&to=8282