diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2020-01-07 08:22:36 -0500 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2020-01-07 18:33:22 -0500 |
commit | 2e3b937f4ee13e70584c881e0c65200e439ff7fa (patch) | |
tree | ca4e3f45a92f969f49ee6d4bcfd4243cff370569 /dom/webidl | |
parent | c0326517787e12bb5904d8f55386499628806b42 (diff) | |
download | UXP-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')
-rw-r--r-- | dom/webidl/HTMLDialogElement.webidl | 22 | ||||
-rw-r--r-- | dom/webidl/moz.build | 1 |
2 files changed, 23 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); +}; diff --git a/dom/webidl/moz.build b/dom/webidl/moz.build index 172895f97..4e3b8f655 100644 --- a/dom/webidl/moz.build +++ b/dom/webidl/moz.build @@ -184,6 +184,7 @@ WEBIDL_FILES = [ 'HTMLDataElement.webidl', 'HTMLDataListElement.webidl', 'HTMLDetailsElement.webidl', + 'HTMLDialogElement.webidl', 'HTMLDirectoryElement.webidl', 'HTMLDivElement.webidl', 'HTMLDListElement.webidl', |