<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>23489</bug_id>
          
          <creation_ts>2013-10-14 14:41:53 +0000</creation_ts>
          <short_desc>OnBeforeUnloadEventHandlerNonNull should have a nullable return value.</short_desc>
          <delta_ts>2013-11-13 22:45:45 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          <blocked>19713</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Peter Van der Beken">peterv</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>94656</commentid>
    <comment_count>0</comment_count>
    <who name="Peter Van der Beken">peterv</who>
    <bug_when>2013-10-14 14:41:53 +0000</bug_when>
    <thetext>The prose about event processing for beforeunload says &apos;If the return value is null, then cancel the event.&apos; 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);|.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96265</commentid>
    <comment_count>1</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-11-13 22:45:45 +0000</bug_when>
    <thetext>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&amp;to=8282</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>