HTMLElement.idl 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. // metadata attributes
  9. [Reflect, CEReactions] attribute DOMString title;
  10. [Reflect, CEReactions] attribute DOMString lang;
  11. // FIXME: [CEReactions] attribute boolean translate;
  12. [CEReactions] attribute DOMString dir;
  13. // user interaction
  14. [Reflect, CEReactions] attribute boolean hidden;
  15. // FIXME: [CEReactions] attribute boolean inert;
  16. undefined click();
  17. // FIXME: [CEReactions] attribute DOMString accessKey;
  18. // FIXME: readonly attribute DOMString accessKeyLabel;
  19. // FIXME: [CEReactions] attribute boolean draggable;
  20. // FIXME: [CEReactions] attribute boolean spellcheck;
  21. // FIXME: [CEReactions] attribute DOMString autocapitalize;
  22. [LegacyNullToEmptyString, CEReactions] attribute DOMString innerText;
  23. // FIXME: [LegacyNullToEmptyString, CEReactions] attribute DOMString outerText;
  24. // FIXME: ElementInternals attachInternals();
  25. // The popover API
  26. // FIXME: undefined showPopover();
  27. // FIXME: undefined hidePopover();
  28. // FIXME: boolean togglePopover(optional boolean force);
  29. // FIXME: [CEReactions] attribute DOMString? popover;
  30. // https://drafts.csswg.org/cssom-view/#extensions-to-the-htmlelement-interface
  31. // FIXME: readonly attribute Element? offsetParent;
  32. readonly attribute long offsetTop;
  33. readonly attribute long offsetLeft;
  34. readonly attribute long offsetWidth;
  35. readonly attribute long offsetHeight;
  36. };
  37. HTMLElement includes GlobalEventHandlers;
  38. HTMLElement includes ElementContentEditable;
  39. HTMLElement includes HTMLOrSVGElement;
  40. // https://html.spec.whatwg.org/#elementcontenteditable
  41. interface mixin ElementContentEditable {
  42. [CEReactions] attribute DOMString contentEditable;
  43. // FIXME: [CEReactions] attribute DOMString enterKeyHint;
  44. // FIXME: readonly attribute boolean isContentEditable;
  45. // FIXME: [CEReactions] attribute DOMString inputMode;
  46. };
  47. // https://html.spec.whatwg.org/#htmlorsvgelement
  48. interface mixin HTMLOrSVGElement {
  49. [SameObject] readonly attribute DOMStringMap dataset;
  50. // FIXME: attribute DOMString nonce; // intentionally no [CEReactions]
  51. [CEReactions, Reflect] attribute boolean autofocus;
  52. [CEReactions] attribute long tabIndex;
  53. // FIXME: Support the optional FocusOptions parameter.
  54. undefined focus();
  55. undefined blur();
  56. };
  57. HTMLElement includes ElementCSSInlineStyle;