HTMLElement.idl 2.6 KB

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