Index: core/html/HTMLElement.idl |
diff --git a/core/html/HTMLElement.idl b/core/html/HTMLElement.idl |
index e606b157647bc4230ec5688c7adb06c3fca3caec..7a849e9443fef9fa96094778f023998820335f0a 100644 |
--- a/core/html/HTMLElement.idl |
+++ b/core/html/HTMLElement.idl |
@@ -18,34 +18,49 @@ |
* Boston, MA 02110-1301, USA. |
*/ |
-[ |
- Custom=Wrap, |
-] interface HTMLElement : Element { |
+// https://html.spec.whatwg.org/#htmlelement |
+ |
+interface HTMLElement : Element { |
+ // metadata attributes |
[Reflect] attribute DOMString title; |
[Reflect] attribute DOMString lang; |
attribute boolean translate; |
attribute DOMString dir; |
+ [SameObject, PerWorldBindings] readonly attribute DOMStringMap dataset; |
- [CustomElementCallbacks] attribute long tabIndex; |
- [CustomElementCallbacks] attribute boolean draggable; |
- [Reflect, TreatNullAs=NullString, MeasureAs=PrefixedHTMLElementDropzone] attribute DOMString webkitdropzone; |
+ // user interaction |
[Reflect] attribute boolean hidden; |
+ void click(); |
+ [CustomElementCallbacks] attribute long tabIndex; |
+ void focus(); |
+ void blur(); |
[Reflect] attribute DOMString accessKey; |
+ [CustomElementCallbacks] attribute boolean draggable; |
+ [RuntimeEnabled=ContextMenu] attribute HTMLMenuElement? contextMenu; |
+ attribute boolean spellcheck; |
- // Extensions |
- [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter, MeasureAs=HTMLElementInnerText] attribute DOMString innerText; |
- [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter, MeasureAs=HTMLElementOuterText] attribute DOMString outerText; |
- |
- [RuntimeEnabled=IMEAPI] readonly attribute InputMethodContext inputMethodContext; |
- |
+ // HTMLElement implements ElementContentEditable |
+ // https://html.spec.whatwg.org/#contenteditable |
[CustomElementCallbacks, RaisesException=Setter] attribute DOMString contentEditable; |
readonly attribute boolean isContentEditable; |
- [RuntimeEnabled=ContextMenu] attribute HTMLMenuElement? contextMenu; |
- attribute boolean spellcheck; |
+ // CSSOM View Module |
+ // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-htmlelement-interface |
+ [PerWorldBindings] readonly attribute Element? offsetParent; |
+ readonly attribute long offsetTop; |
+ readonly attribute long offsetLeft; |
+ readonly attribute long offsetWidth; |
+ readonly attribute long offsetHeight; |
- void click(); |
+ // CSS Object Model (CSSOM) |
+ // http://dev.w3.org/csswg/cssom/#the-elementcssinlinestyle-interface |
+ // FIXME: style should have [PutForwards=cssText]. |
+ [SameObject, PerWorldBindings] readonly attribute CSSStyleDeclaration style; |
+ |
+ // Non-standard APIs |
+ [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter, MeasureAs=HTMLElementInnerText] attribute DOMString innerText; |
+ [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter, MeasureAs=HTMLElementOuterText] attribute DOMString outerText; |
+ [Reflect, TreatNullAs=NullString, MeasureAs=PrefixedHTMLElementDropzone] attribute DOMString webkitdropzone; |
}; |
HTMLElement implements GlobalEventHandlers; |
- |