HTMLElement.idl 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #import <CSS/ElementCSSInlineStyle.idl>
  2. #import <HTML/DOMStringMap.idl>
  3. #import <DOM/EventHandler.idl>
  4. // https://html.spec.whatwg.org/multipage/semantics.html#htmlelement
  5. [Exposed=Window]
  6. interface HTMLElement : Element {
  7. [HTMLConstructor] constructor();
  8. [Reflect, CEReactions] attribute DOMString title;
  9. [Reflect, CEReactions] attribute DOMString lang;
  10. [CEReactions] attribute DOMString dir;
  11. [Reflect, CEReactions] attribute boolean hidden;
  12. attribute DOMString contentEditable;
  13. undefined click();
  14. // FIXME: Support the optional FocusOptions parameter.
  15. undefined focus();
  16. undefined blur();
  17. [LegacyNullToEmptyString, CEReactions] attribute DOMString innerText;
  18. readonly attribute long offsetTop;
  19. readonly attribute long offsetLeft;
  20. readonly attribute long offsetWidth;
  21. readonly attribute long offsetHeight;
  22. };
  23. HTMLElement includes GlobalEventHandlers;
  24. HTMLElement includes HTMLOrSVGElement;
  25. interface mixin HTMLOrSVGElement {
  26. [SameObject] readonly attribute DOMStringMap dataset;
  27. [CEReactions, Reflect] attribute boolean autofocus;
  28. [CEReactions] attribute long tabIndex;
  29. };
  30. HTMLElement includes ElementCSSInlineStyle;