summaryrefslogtreecommitdiffstats
path: root/dom/webidl/HTMLDialogElement.webidl
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-01-07 08:22:36 -0500
committerGaming4JC <g4jc@hyperbola.info>2020-01-07 18:33:22 -0500
commit2e3b937f4ee13e70584c881e0c65200e439ff7fa (patch)
treeca4e3f45a92f969f49ee6d4bcfd4243cff370569 /dom/webidl/HTMLDialogElement.webidl
parentc0326517787e12bb5904d8f55386499628806b42 (diff)
downloadUXP-2e3b937f4ee13e70584c881e0c65200e439ff7fa.tar
UXP-2e3b937f4ee13e70584c881e0c65200e439ff7fa.tar.gz
UXP-2e3b937f4ee13e70584c881e0c65200e439ff7fa.tar.lz
UXP-2e3b937f4ee13e70584c881e0c65200e439ff7fa.tar.xz
UXP-2e3b937f4ee13e70584c881e0c65200e439ff7fa.zip
Bug 1322938 - Basic implementation of HTMLDialogElement.
Tag #1343
Diffstat (limited to 'dom/webidl/HTMLDialogElement.webidl')
-rw-r--r--dom/webidl/HTMLDialogElement.webidl22
1 files changed, 22 insertions, 0 deletions
diff --git a/dom/webidl/HTMLDialogElement.webidl b/dom/webidl/HTMLDialogElement.webidl
new file mode 100644
index 000000000..f4aa8484a
--- /dev/null
+++ b/dom/webidl/HTMLDialogElement.webidl
@@ -0,0 +1,22 @@
+/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
+ * You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * The origin of this IDL file is
+ * https://html.spec.whatwg.org/multipage/forms.html#the-dialog-element
+ *
+ * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
+ * Opera Software ASA. You are granted a license to use, reproduce
+ * and create derivative works of this document.
+ */
+
+interface HTMLDialogElement : HTMLElement {
+ [SetterThrows] attribute boolean open;
+ attribute DOMString returnValue;
+
+ void show();
+ [Throws] void showModal();
+
+ void close(optional DOMString returnValue);
+};