Document.idl 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. interface Document : Node {
  2. constructor();
  3. readonly attribute DOMImplementation implementation;
  4. readonly attribute DOMString characterSet;
  5. readonly attribute DOMString charset;
  6. readonly attribute DOMString inputEncoding;
  7. readonly attribute DOMString contentType;
  8. readonly attribute Window? defaultView;
  9. attribute DOMString cookie;
  10. Element? getElementById(DOMString id);
  11. HTMLCollection getElementsByName(DOMString name);
  12. HTMLCollection getElementsByTagName(DOMString tagName);
  13. HTMLCollection getElementsByClassName(DOMString className);
  14. readonly attribute HTMLCollection applets;
  15. readonly attribute HTMLCollection anchors;
  16. readonly attribute HTMLCollection images;
  17. readonly attribute HTMLCollection embeds;
  18. readonly attribute HTMLCollection plugins;
  19. readonly attribute HTMLCollection links;
  20. readonly attribute HTMLCollection forms;
  21. readonly attribute HTMLCollection scripts;
  22. Element createElement(DOMString tagName);
  23. Element createElementNS(DOMString? namespace, DOMString qualifiedName);
  24. DocumentFragment createDocumentFragment();
  25. Text createTextNode(DOMString data);
  26. Comment createComment(DOMString data);
  27. Range createRange();
  28. Event createEvent(DOMString interface);
  29. [CEReactions, ImplementedAs=adopt_node_binding] Node adoptNode(Node node);
  30. [ImplementedAs=style_sheets_for_bindings] readonly attribute StyleSheetList styleSheets;
  31. readonly attribute DOMString compatMode;
  32. readonly attribute DocumentType? doctype;
  33. readonly attribute Element? documentElement;
  34. attribute HTMLElement? body;
  35. readonly attribute HTMLHeadElement? head;
  36. readonly attribute HTMLScriptElement? currentScript;
  37. readonly attribute DOMString readyState;
  38. attribute DOMString title;
  39. // FIXME: These should all come from a ParentNode mixin
  40. readonly attribute Element? firstElementChild;
  41. readonly attribute Element? lastElementChild;
  42. readonly attribute unsigned long childElementCount;
  43. Element? querySelector(DOMString selectors);
  44. ArrayFromVector querySelectorAll(DOMString selectors);
  45. // FIXME: These should all come from a GlobalEventHandlers mixin
  46. attribute EventHandler onabort;
  47. attribute EventHandler onauxclick;
  48. attribute EventHandler onblur;
  49. attribute EventHandler oncancel;
  50. attribute EventHandler oncanplay;
  51. attribute EventHandler oncanplaythrough;
  52. attribute EventHandler onchange;
  53. attribute EventHandler onclick;
  54. attribute EventHandler onclose;
  55. attribute EventHandler oncontextmenu;
  56. attribute EventHandler oncuechange;
  57. attribute EventHandler ondblclick;
  58. attribute EventHandler ondrag;
  59. attribute EventHandler ondragend;
  60. attribute EventHandler ondragenter;
  61. attribute EventHandler ondragleave;
  62. attribute EventHandler ondragover;
  63. attribute EventHandler ondragstart;
  64. attribute EventHandler ondrop;
  65. attribute EventHandler ondurationchange;
  66. attribute EventHandler onemptied;
  67. attribute EventHandler onended;
  68. // FIXME: Should be an OnErrorEventHandler
  69. attribute EventHandler onerror;
  70. attribute EventHandler onfocus;
  71. attribute EventHandler onformdata;
  72. attribute EventHandler oninput;
  73. attribute EventHandler oninvalid;
  74. attribute EventHandler onkeydown;
  75. attribute EventHandler onkeypress;
  76. attribute EventHandler onkeyup;
  77. attribute EventHandler onload;
  78. attribute EventHandler onloadeddata;
  79. attribute EventHandler onloadedmetadata;
  80. attribute EventHandler onloadstart;
  81. attribute EventHandler onmousedown;
  82. [LegacyLenientThis] attribute EventHandler onmouseenter;
  83. [LegacyLenientThis] attribute EventHandler onmouseleave;
  84. attribute EventHandler onmousemove;
  85. attribute EventHandler onmouseout;
  86. attribute EventHandler onmouseover;
  87. attribute EventHandler onmouseup;
  88. attribute EventHandler onpause;
  89. attribute EventHandler onplay;
  90. attribute EventHandler onplaying;
  91. attribute EventHandler onprogress;
  92. attribute EventHandler onratechange;
  93. attribute EventHandler onreset;
  94. attribute EventHandler onresize;
  95. attribute EventHandler onscroll;
  96. attribute EventHandler onsecuritypolicyviolation;
  97. attribute EventHandler onseeked;
  98. attribute EventHandler onseeking;
  99. attribute EventHandler onselect;
  100. attribute EventHandler onslotchange;
  101. attribute EventHandler onstalled;
  102. attribute EventHandler onsubmit;
  103. attribute EventHandler onsuspend;
  104. attribute EventHandler ontimeupdate;
  105. attribute EventHandler ontoggle;
  106. attribute EventHandler onvolumechange;
  107. attribute EventHandler onwaiting;
  108. attribute EventHandler onwebkitanimationend;
  109. attribute EventHandler onwebkitanimationiteration;
  110. attribute EventHandler onwebkitanimationstart;
  111. attribute EventHandler onwebkittransitionend;
  112. attribute EventHandler onwheel;
  113. };