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.gz |
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 0000000000..f4aa8484ab --- /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 172895f978..4e3b8f655e 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', |