<?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>23478</bug_id>
          
          <creation_ts>2013-10-10 05:23:25 +0000</creation_ts>
          <short_desc>&lt;dialog&gt;: The &quot;Submit dialog&quot; steps can&apos;t run the exact steps for closing a dialog, since no exception can be thrown</short_desc>
          <delta_ts>2013-12-11 21:36:20 +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>Linux</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matt Falkenhagen">falken</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>94541</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Falkenhagen">falken</who>
    <bug_when>2013-10-10 05:23:25 +0000</bug_when>
    <thetext>The steps for &quot;Submit dialog&quot;[0] involve running the steps to &quot;close the dialog&quot;[1], which require throwing an exception if the dialog does not have an &apos;open&apos; attribute. However, it&apos;s not possible to throw an exception here, since there is no JavaScript running.

It&apos;s possible for the dialog to not have an &apos;open&apos; attribute at this point, if for example dialog.style.display was set to &apos;block&apos; while the dialog was closed.
 
[0] http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#submit-dialog
[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/commands.html#close-the-dialog</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97473</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-12-11 21:36:05 +0000</bug_when>
    <thetext>Good catch, thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97474</commentid>
    <comment_count>2</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-12-11 21:36:20 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8344.
Check-in comment: Make non-scripted &lt;dialog&gt; closing not throw uncaught exceptions.
http://html5.org/tools/web-apps-tracker?from=8343&amp;to=8344</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>