Document.idl 5.3 KB

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