Document.idl 5.0 KB

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