2018-09-13 23:04:55 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-11-11 03:30:15 +04:00
|
|
|
/* 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
|
|
|
|
* http://www.whatwg.org/specs/web-apps/current-work/ and
|
|
|
|
* http://dev.w3.org/csswg/cssom-view/
|
|
|
|
*
|
|
|
|
* © 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.
|
|
|
|
*/
|
|
|
|
|
2019-10-17 18:38:39 +03:00
|
|
|
[Exposed=Window]
|
2012-11-11 03:30:15 +04:00
|
|
|
interface HTMLElement : Element {
|
2019-10-17 18:38:39 +03:00
|
|
|
[HTMLConstructor] constructor();
|
|
|
|
|
2012-11-11 03:30:15 +04:00
|
|
|
// metadata attributes
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions]
|
2012-11-11 03:30:15 +04:00
|
|
|
attribute DOMString title;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions]
|
2012-11-11 03:30:15 +04:00
|
|
|
attribute DOMString lang;
|
|
|
|
// attribute boolean translate;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2012-11-11 03:30:15 +04:00
|
|
|
attribute DOMString dir;
|
|
|
|
|
2019-03-02 07:21:31 +03:00
|
|
|
[CEReactions, GetterThrows, Pure]
|
|
|
|
attribute [TreatNullAs=EmptyString] DOMString innerText;
|
2015-10-30 08:37:03 +03:00
|
|
|
|
2012-11-11 03:30:15 +04:00
|
|
|
// user interaction
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2012-11-11 03:30:15 +04:00
|
|
|
attribute boolean hidden;
|
2020-07-30 20:30:46 +03:00
|
|
|
[CEReactions, SetterThrows, Pure, Pref="html5.inert.enabled"]
|
|
|
|
attribute boolean inert;
|
2016-11-15 08:18:33 +03:00
|
|
|
[NeedsCallerType]
|
2012-11-11 03:30:15 +04:00
|
|
|
void click();
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2012-11-11 03:30:15 +04:00
|
|
|
attribute DOMString accessKey;
|
2013-01-30 02:53:53 +04:00
|
|
|
[Pure]
|
2012-11-11 03:30:15 +04:00
|
|
|
readonly attribute DOMString accessKeyLabel;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2012-11-11 03:30:15 +04:00
|
|
|
attribute boolean draggable;
|
2016-02-12 01:50:42 +03:00
|
|
|
//[PutForwards=value] readonly attribute DOMTokenList dropzone;
|
2017-11-21 17:02:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2012-11-11 03:30:15 +04:00
|
|
|
attribute DOMString contentEditable;
|
2013-01-30 02:53:53 +04:00
|
|
|
[Pure]
|
2012-11-11 03:30:15 +04:00
|
|
|
readonly attribute boolean isContentEditable;
|
2020-12-08 08:36:27 +03:00
|
|
|
[Pure, Pref="dom.menuitem.enabled"]
|
2012-11-11 03:30:15 +04:00
|
|
|
readonly attribute HTMLMenuElement? contextMenu;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2012-11-11 03:30:15 +04:00
|
|
|
attribute boolean spellcheck;
|
2020-04-07 11:37:25 +03:00
|
|
|
[CEReactions, Pure, SetterThrows, Pref="dom.forms.inputmode"]
|
|
|
|
attribute DOMString inputMode;
|
2020-06-23 09:37:20 +03:00
|
|
|
[CEReactions, Pure, SetterThrows, Pref="dom.forms.enterkeyhint"]
|
|
|
|
attribute DOMString enterKeyHint;
|
2020-09-15 17:33:27 +03:00
|
|
|
[CEReactions, Pure, SetterThrows, Pref="dom.forms.autocapitalize"]
|
|
|
|
attribute DOMString autocapitalize;
|
2012-11-11 03:30:15 +04:00
|
|
|
|
2020-02-29 15:35:46 +03:00
|
|
|
attribute DOMString nonce;
|
|
|
|
|
2012-11-11 03:30:15 +04:00
|
|
|
// command API
|
|
|
|
//readonly attribute DOMString? commandType;
|
|
|
|
//readonly attribute DOMString? commandLabel;
|
|
|
|
//readonly attribute DOMString? commandIcon;
|
|
|
|
//readonly attribute boolean? commandHidden;
|
|
|
|
//readonly attribute boolean? commandDisabled;
|
|
|
|
//readonly attribute boolean? commandChecked;
|
2019-11-12 14:27:55 +03:00
|
|
|
|
|
|
|
// https://html.spec.whatwg.org/multipage/custom-elements.html#dom-attachinternals
|
2020-08-05 12:35:56 +03:00
|
|
|
[Pref="dom.webcomponents.formAssociatedCustomElement.enabled", Throws]
|
2019-11-12 14:27:55 +03:00
|
|
|
ElementInternals attachInternals();
|
2012-11-11 03:30:15 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
// http://dev.w3.org/csswg/cssom-view/#extensions-to-the-htmlelement-interface
|
|
|
|
partial interface HTMLElement {
|
2013-01-30 02:53:53 +04:00
|
|
|
// CSSOM things are not [Pure] because they can flush
|
2012-11-11 03:30:15 +04:00
|
|
|
readonly attribute Element? offsetParent;
|
|
|
|
readonly attribute long offsetTop;
|
|
|
|
readonly attribute long offsetLeft;
|
|
|
|
readonly attribute long offsetWidth;
|
|
|
|
readonly attribute long offsetHeight;
|
|
|
|
};
|
|
|
|
|
2019-09-24 18:22:26 +03:00
|
|
|
interface mixin TouchEventHandlers {
|
2019-03-04 14:35:53 +03:00
|
|
|
[Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"]
|
2013-01-29 21:51:55 +04:00
|
|
|
attribute EventHandler ontouchstart;
|
2019-03-04 14:35:53 +03:00
|
|
|
[Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"]
|
2013-01-29 21:51:55 +04:00
|
|
|
attribute EventHandler ontouchend;
|
2019-03-04 14:35:53 +03:00
|
|
|
[Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"]
|
2013-01-29 21:51:55 +04:00
|
|
|
attribute EventHandler ontouchmove;
|
2019-03-04 14:35:53 +03:00
|
|
|
[Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"]
|
2013-01-29 21:51:55 +04:00
|
|
|
attribute EventHandler ontouchcancel;
|
|
|
|
};
|
|
|
|
|
2019-09-06 22:34:55 +03:00
|
|
|
HTMLElement includes GlobalEventHandlers;
|
2019-09-06 10:46:46 +03:00
|
|
|
HTMLElement includes HTMLOrForeignElement;
|
2019-09-06 22:34:55 +03:00
|
|
|
HTMLElement includes DocumentAndElementEventHandlers;
|
|
|
|
HTMLElement includes ElementCSSInlineStyle;
|
2019-09-24 18:22:26 +03:00
|
|
|
HTMLElement includes TouchEventHandlers;
|
|
|
|
HTMLElement includes OnErrorEventHandlerForNodes;
|
2013-01-29 17:44:00 +04:00
|
|
|
|
2019-09-27 18:26:14 +03:00
|
|
|
[Exposed=Window]
|
2012-11-11 03:30:15 +04:00
|
|
|
interface HTMLUnknownElement : HTMLElement {};
|