HTMLElement.idl 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. interface mixin ElementContentEditable {
  41. [CEReactions] attribute DOMString contentEditable;
  42. // FIXME: [CEReactions] attribute DOMString enterKeyHint;
  43. // FIXME: readonly attribute boolean isContentEditable;
  44. // FIXME: [CEReactions] attribute DOMString inputMode;
  45. };
  46. interface mixin HTMLOrSVGElement {
  47. [SameObject] readonly attribute DOMStringMap dataset;
  48. // FIXME: attribute DOMString nonce; // intentionally no [CEReactions]
  49. [CEReactions, Reflect] attribute boolean autofocus;
  50. [CEReactions] attribute long tabIndex;
  51. // FIXME: Support the optional FocusOptions parameter.
  52. undefined focus();
  53. undefined blur();
  54. };
  55. HTMLElement includes ElementCSSInlineStyle;