Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / Source / core / html / HTMLElement.idl
blob9b9a3dccaded875814a3f1cbeda6fda07cba0c54
1 /*
2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
21 // https://html.spec.whatwg.org/#htmlelement
23 interface HTMLElement : Element {
24 // metadata attributes
25 [Reflect] attribute DOMString title;
26 [Reflect] attribute DOMString lang;
27 attribute boolean translate;
28 attribute DOMString dir;
29 [SameObject, PerWorldBindings] readonly attribute DOMStringMap dataset;
31 // user interaction
32 [Reflect] attribute boolean hidden;
33 [ImplementedAs=clickForBindings] void click();
34 [CustomElementCallbacks] attribute long tabIndex;
35 void focus();
36 void blur();
37 [Reflect] attribute DOMString accessKey;
38 [CustomElementCallbacks] attribute boolean draggable;
39 [RuntimeEnabled=ContextMenu] attribute HTMLMenuElement? contextMenu;
40 attribute boolean spellcheck;
42 // HTMLElement implements ElementContentEditable
43 // https://html.spec.whatwg.org/#contenteditable
44 [CustomElementCallbacks, RaisesException=Setter] attribute DOMString contentEditable;
45 readonly attribute boolean isContentEditable;
47 // CSSOM View Module
48 // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-htmlelement-interface
49 [PerWorldBindings] readonly attribute Element? offsetParent;
50 readonly attribute long offsetTop;
51 readonly attribute long offsetLeft;
52 readonly attribute long offsetWidth;
53 readonly attribute long offsetHeight;
55 // CSS Object Model (CSSOM)
56 // http://dev.w3.org/csswg/cssom/#the-elementcssinlinestyle-interface
57 // FIXME: style should have [PutForwards=cssText].
58 [SameObject, PerWorldBindings] readonly attribute CSSStyleDeclaration style;
60 // Non-standard APIs
61 [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter, MeasureAs=HTMLElementInnerText] attribute DOMString innerText;
62 [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter, MeasureAs=HTMLElementOuterText] attribute DOMString outerText;
63 [Reflect, TreatNullAs=NullString, MeasureAs=PrefixedHTMLElementDropzone] attribute DOMString webkitdropzone;
66 HTMLElement implements GlobalEventHandlers;