OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
14 * | 14 * |
15 * You should have received a copy of the GNU Library General Public License | 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 | 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, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
19 */ | 19 */ |
20 | 20 |
21 // https://html.spec.whatwg.org/#htmlelement | 21 // https://html.spec.whatwg.org/#htmlelement |
22 [HTMLConstructor] | 22 [HTMLConstructor] |
23 interface HTMLElement : Element { | 23 interface HTMLElement : Element { |
24 // metadata attributes | 24 // metadata attributes |
25 [CEReactions, Reflect] attribute DOMString title; | 25 [CEReactions, Reflect] attribute DOMString title; |
26 [CEReactions, Reflect] attribute DOMString lang; | 26 [CEReactions, Reflect] attribute DOMString lang; |
27 [CEReactions] attribute boolean translate; | 27 [Measure, CEReactions] attribute boolean translate; |
28 [CEReactions] attribute DOMString dir; | 28 [Measure, CEReactions] attribute DOMString dir; |
29 [SameObject, PerWorldBindings] readonly attribute DOMStringMap dataset; | 29 [SameObject, PerWorldBindings] readonly attribute DOMStringMap dataset; |
30 | 30 |
31 // user interaction | 31 // user interaction |
32 [CEReactions, Reflect] attribute boolean hidden; | 32 [CEReactions, Reflect] attribute boolean hidden; |
33 [ImplementedAs=clickForBindings] void click(); | 33 [ImplementedAs=clickForBindings] void click(); |
34 [CEReactions, CustomElementCallbacks] attribute long tabIndex; | 34 [Measure, CEReactions, CustomElementCallbacks] attribute long tabIndex; |
35 void focus(); | 35 void focus(); |
36 void blur(); | 36 void blur(); |
37 [CEReactions, Reflect] attribute DOMString accessKey; | 37 [Measure, CEReactions, Reflect] attribute DOMString accessKey; |
38 [CEReactions, CustomElementCallbacks] attribute boolean draggable; | 38 [Measure, CEReactions, CustomElementCallbacks] attribute boolean draggable; |
39 [CEReactions, RuntimeEnabled=ContextMenu] attribute HTMLMenuElement? context
Menu; | 39 [Measure, CEReactions, RuntimeEnabled=ContextMenu] attribute HTMLMenuElement?
contextMenu; |
40 [CEReactions] attribute boolean spellcheck; | 40 [Measure, CEReactions] attribute boolean spellcheck; |
41 | 41 |
42 // HTMLElement implements ElementContentEditable | 42 // HTMLElement implements ElementContentEditable |
43 // https://html.spec.whatwg.org/#contenteditable | 43 // https://html.spec.whatwg.org/#contenteditable |
44 [CEReactions, CustomElementCallbacks, RaisesException=Setter] attribute DOMS
tring contentEditable; | 44 [Measure, CEReactions, CustomElementCallbacks, RaisesException=Setter] attribu
te DOMString contentEditable; |
45 [ImplementedAs=isContentEditableForBinding] readonly attribute boolean isCon
tentEditable; | 45 [Measure, ImplementedAs=isContentEditableForBinding] readonly attribute boolea
n isContentEditable; |
46 [RuntimeEnabled=InputModeAttribute, CEReactions, Reflect] attribute DOMStrin
g inputMode; | 46 [Measure, RuntimeEnabled=InputModeAttribute, CEReactions, Reflect] attribute D
OMString inputMode; |
47 | 47 |
48 // CSSOM View Module | 48 // CSSOM View Module |
49 // https://dev.w3.org/csswg/cssom-view/#extensions-to-the-htmlelement-interf
ace | 49 // https://dev.w3.org/csswg/cssom-view/#extensions-to-the-htmlelement-interf
ace |
50 [PerWorldBindings, ImplementedAs=unclosedOffsetParent] readonly attribute El
ement? offsetParent; | 50 [PerWorldBindings, ImplementedAs=unclosedOffsetParent] readonly attribute El
ement? offsetParent; |
51 [ImplementedAs=offsetTopForBinding] readonly attribute long offsetTop; | 51 [ImplementedAs=offsetTopForBinding] readonly attribute long offsetTop; |
52 [ImplementedAs=offsetLeftForBinding] readonly attribute long offsetLeft; | 52 [ImplementedAs=offsetLeftForBinding] readonly attribute long offsetLeft; |
53 [ImplementedAs=offsetWidthForBinding] readonly attribute long offsetWidth; | 53 [ImplementedAs=offsetWidthForBinding] readonly attribute long offsetWidth; |
54 [ImplementedAs=offsetHeightForBinding] readonly attribute long offsetHeight; | 54 [ImplementedAs=offsetHeightForBinding] readonly attribute long offsetHeight; |
55 | 55 |
56 // CSS Object Model (CSSOM) | 56 // CSS Object Model (CSSOM) |
57 // https://dev.w3.org/csswg/cssom/#the-elementcssinlinestyle-interface | 57 // https://dev.w3.org/csswg/cssom/#the-elementcssinlinestyle-interface |
58 [SameObject, PerWorldBindings, PutForwards=cssText] readonly attribute CSSSt
yleDeclaration style; | 58 [SameObject, PerWorldBindings, PutForwards=cssText] readonly attribute CSSSt
yleDeclaration style; |
59 // Typed OM | 59 // Typed OM |
60 // https://drafts.css-houdini.org/css-typed-om/#inline-stylepropertymap-obje
cts | 60 // https://drafts.css-houdini.org/css-typed-om/#inline-stylepropertymap-obje
cts |
61 [RuntimeEnabled=CSSTypedOM] readonly attribute StylePropertyMap styleMap; | 61 [RuntimeEnabled=CSSTypedOM] readonly attribute StylePropertyMap styleMap; |
62 | 62 |
63 // Non-standard APIs | 63 // Non-standard APIs |
64 [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter, Mea
sureAs=HTMLElementInnerText] attribute DOMString innerText; | 64 [Measure, TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Sett
er, MeasureAs=HTMLElementInnerText] attribute DOMString innerText; |
65 [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter, Mea
sureAs=HTMLElementOuterText] attribute DOMString outerText; | 65 [Measure, TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Sett
er, MeasureAs=HTMLElementOuterText] attribute DOMString outerText; |
66 [CEReactions, Reflect, TreatNullAs=NullString, MeasureAs=PrefixedHTMLElement
Dropzone] attribute DOMString webkitdropzone; | 66 [CEReactions, Reflect, TreatNullAs=NullString, MeasureAs=PrefixedHTMLElement
Dropzone] attribute DOMString webkitdropzone; |
67 }; | 67 }; |
68 | 68 |
69 HTMLElement implements GlobalEventHandlers; | 69 HTMLElement implements GlobalEventHandlers; |
OLD | NEW |