Document.idl 5.3 KB

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