From 2e3b937f4ee13e70584c881e0c65200e439ff7fa Mon Sep 17 00:00:00 2001 From: Gaming4JC Date: Tue, 7 Jan 2020 08:22:36 -0500 Subject: Bug 1322938 - Basic implementation of HTMLDialogElement. Tag #1343 --- dom/webidl/HTMLDialogElement.webidl | 22 ++++++++++++++++++++++ dom/webidl/moz.build | 1 + 2 files changed, 23 insertions(+) create mode 100644 dom/webidl/HTMLDialogElement.webidl (limited to 'dom/webidl') 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', -- cgit v1.2.3