HTMLElement.idl 986 B

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