Document.idl 4.3 KB

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