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 23478 - <dialog>: The "Submit dialog" steps can't run the exact steps for closing a dialog, since no exception can be thrown
Summary: <dialog>: The "Submit dialog" steps can't run the exact steps for closing a d...
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-10 05:23 UTC by Matt Falkenhagen
Modified: 2013-12-11 21:36 UTC (History)
2 users (show)

See Also:


Attachments

Description Matt Falkenhagen 2013-10-10 05:23:25 UTC
The steps for "Submit dialog"[0] involve running the steps to "close the dialog"[1], which require throwing an exception if the dialog does not have an 'open' attribute. However, it's not possible to throw an exception here, since there is no JavaScript running.

It's possible for the dialog to not have an 'open' attribute at this point, if for example dialog.style.display was set to 'block' 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
Comment 1 Ian 'Hixie' Hickson 2013-12-11 21:36:05 UTC
Good catch, thanks.
Comment 2 contributor 2013-12-11 21:36:20 UTC
Checked in as WHATWG revision r8344.
Check-in comment: Make non-scripted <dialog> closing not throw uncaught exceptions.
http://html5.org/tools/web-apps-tracker?from=8343&to=8344