@webref/idl 3.28.0 → 3.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. package/package.json +1 -1
  2. package/ANGLE_instanced_arrays.idl +0 -12
  3. package/CSP.idl +0 -56
  4. package/DOM-Parsing.idl +0 -26
  5. package/EXT_blend_minmax.idl +0 -10
  6. package/EXT_color_buffer_float.idl +0 -8
  7. package/EXT_color_buffer_half_float.idl +0 -12
  8. package/EXT_disjoint_timer_query.idl +0 -30
  9. package/EXT_disjoint_timer_query_webgl2.idl +0 -14
  10. package/EXT_float_blend.idl +0 -8
  11. package/EXT_frag_depth.idl +0 -8
  12. package/EXT_sRGB.idl +0 -12
  13. package/EXT_shader_texture_lod.idl +0 -8
  14. package/EXT_texture_compression_bptc.idl +0 -12
  15. package/EXT_texture_compression_rgtc.idl +0 -12
  16. package/EXT_texture_filter_anisotropic.idl +0 -10
  17. package/EXT_texture_norm16.idl +0 -16
  18. package/FedCM.idl +0 -67
  19. package/FileAPI.idl +0 -100
  20. package/IndexedDB.idl +0 -226
  21. package/KHR_parallel_shader_compile.idl +0 -9
  22. package/OES_draw_buffers_indexed.idl +0 -26
  23. package/OES_element_index_uint.idl +0 -8
  24. package/OES_fbo_render_mipmap.idl +0 -8
  25. package/OES_standard_derivatives.idl +0 -9
  26. package/OES_texture_float.idl +0 -7
  27. package/OES_texture_float_linear.idl +0 -7
  28. package/OES_texture_half_float.idl +0 -9
  29. package/OES_texture_half_float_linear.idl +0 -7
  30. package/OES_vertex_array_object.idl +0 -18
  31. package/OVR_multiview2.idl +0 -14
  32. package/SVG.idl +0 -693
  33. package/WEBGL_blend_equation_advanced_coherent.idl +0 -23
  34. package/WEBGL_clip_cull_distance.idl +0 -20
  35. package/WEBGL_color_buffer_float.idl +0 -11
  36. package/WEBGL_compressed_texture_astc.idl +0 -41
  37. package/WEBGL_compressed_texture_etc.idl +0 -19
  38. package/WEBGL_compressed_texture_etc1.idl +0 -10
  39. package/WEBGL_compressed_texture_pvrtc.idl +0 -13
  40. package/WEBGL_compressed_texture_s3tc.idl +0 -13
  41. package/WEBGL_compressed_texture_s3tc_srgb.idl +0 -13
  42. package/WEBGL_debug_renderer_info.idl +0 -12
  43. package/WEBGL_debug_shaders.idl +0 -11
  44. package/WEBGL_depth_texture.idl +0 -9
  45. package/WEBGL_draw_buffers.idl +0 -46
  46. package/WEBGL_draw_instanced_base_vertex_base_instance.idl +0 -14
  47. package/WEBGL_lose_context.idl +0 -10
  48. package/WEBGL_multi_draw.idl +0 -32
  49. package/WEBGL_multi_draw_instanced_base_vertex_base_instance.idl +0 -26
  50. package/WEBGL_provoking_vertex.idl +0 -13
  51. package/WebCryptoAPI.idl +0 -237
  52. package/accelerometer.idl +0 -40
  53. package/ambient-light.idl +0 -14
  54. package/anchors.idl +0 -35
  55. package/attribution-reporting-api.idl +0 -12
  56. package/audio-output.idl +0 -17
  57. package/autoplay-detection.idl +0 -19
  58. package/background-fetch.idl +0 -89
  59. package/background-sync.idl +0 -30
  60. package/badging.idl +0 -19
  61. package/battery-status.idl +0 -21
  62. package/beacon.idl +0 -8
  63. package/capture-handle-identity.idl +0 -27
  64. package/clipboard-apis.idl +0 -51
  65. package/close-watcher.idl +0 -19
  66. package/compat.idl +0 -13
  67. package/compression.idl +0 -16
  68. package/compute-pressure.idl +0 -40
  69. package/console.idl +0 -34
  70. package/contact-picker.idl +0 -44
  71. package/content-index.idl +0 -46
  72. package/cookie-store.idl +0 -110
  73. package/crash-reporting.idl +0 -10
  74. package/credential-management.idl +0 -105
  75. package/csp-embedded-enforcement.idl +0 -8
  76. package/csp-next.idl +0 -21
  77. package/css-animation-worklet.idl +0 -37
  78. package/css-animations-2.idl +0 -9
  79. package/css-animations.idl +0 -47
  80. package/css-cascade-6.idl +0 -10
  81. package/css-cascade.idl +0 -18
  82. package/css-color-5.idl +0 -12
  83. package/css-conditional.idl +0 -27
  84. package/css-contain-3.idl +0 -10
  85. package/css-contain.idl +0 -13
  86. package/css-counter-styles.idl +0 -23
  87. package/css-font-loading.idl +0 -134
  88. package/css-fonts.idl +0 -36
  89. package/css-highlight-api.idl +0 -27
  90. package/css-images-4.idl +0 -8
  91. package/css-layout-api.idl +0 -144
  92. package/css-masking.idl +0 -20
  93. package/css-nav.idl +0 -48
  94. package/css-nesting.idl +0 -10
  95. package/css-paint-api.idl +0 -39
  96. package/css-parser-api.idl +0 -76
  97. package/css-properties-values-api.idl +0 -23
  98. package/css-pseudo.idl +0 -16
  99. package/css-regions.idl +0 -29
  100. package/css-shadow-parts.idl +0 -8
  101. package/css-transitions-2.idl +0 -9
  102. package/css-transitions.idl +0 -25
  103. package/css-typed-om.idl +0 -423
  104. package/css-view-transitions.idl +0 -18
  105. package/cssom-view.idl +0 -200
  106. package/cssom.idl +0 -159
  107. package/custom-state-pseudo-class.idl +0 -14
  108. package/datacue.idl +0 -12
  109. package/deprecation-reporting.idl +0 -15
  110. package/device-memory.idl +0 -14
  111. package/device-posture.idl +0 -21
  112. package/digital-goods.idl +0 -44
  113. package/dom.idl +0 -645
  114. package/edit-context.idl +0 -113
  115. package/element-timing.idl +0 -22
  116. package/encoding.idl +0 -59
  117. package/encrypted-media.idl +0 -125
  118. package/entries-api.idl +0 -71
  119. package/event-timing.idl +0 -29
  120. package/eyedropper-api.idl +0 -18
  121. package/fenced-frame.idl +0 -49
  122. package/fetch.idl +0 -117
  123. package/fido.idl +0 -47
  124. package/file-system-access.idl +0 -72
  125. package/filter-effects.idl +0 -341
  126. package/font-metrics-api.idl +0 -42
  127. package/fs.idl +0 -97
  128. package/fullscreen.idl +0 -35
  129. package/gamepad-extensions.idl +0 -71
  130. package/gamepad.idl +0 -49
  131. package/generic-sensor.idl +0 -60
  132. package/geolocation-sensor.idl +0 -47
  133. package/geolocation.idl +0 -65
  134. package/geometry.idl +0 -290
  135. package/get-installed-related-apps.idl +0 -16
  136. package/gpc-spec.idl +0 -10
  137. package/gyroscope.idl +0 -24
  138. package/hr-time.idl +0 -19
  139. package/html-media-capture.idl +0 -8
  140. package/html.idl +0 -2716
  141. package/idle-detection.idl +0 -31
  142. package/image-capture.idl +0 -160
  143. package/image-resource.idl +0 -11
  144. package/ink-enhancement.idl +0 -32
  145. package/input-device-capabilities.idl +0 -24
  146. package/input-events.idl +0 -14
  147. package/intersection-observer.idl +0 -46
  148. package/intervention-reporting.idl +0 -14
  149. package/is-input-pending.idl +0 -16
  150. package/js-self-profiling.idl +0 -44
  151. package/keyboard-lock.idl +0 -14
  152. package/keyboard-map.idl +0 -15
  153. package/largest-contentful-paint.idl +0 -15
  154. package/layout-instability.idl +0 -20
  155. package/local-font-access.idl +0 -24
  156. package/longtasks.idl +0 -19
  157. package/magnetometer.idl +0 -46
  158. package/manifest-incubations.idl +0 -24
  159. package/mathml-core.idl +0 -9
  160. package/media-capabilities.idl +0 -115
  161. package/media-playback-quality.idl +0 -18
  162. package/media-source.idl +0 -91
  163. package/mediacapture-automation.idl +0 -36
  164. package/mediacapture-fromelement.idl +0 -17
  165. package/mediacapture-handle-actions.idl +0 -31
  166. package/mediacapture-region.idl +0 -15
  167. package/mediacapture-streams.idl +0 -248
  168. package/mediacapture-transform.idl +0 -23
  169. package/mediacapture-viewport.idl +0 -14
  170. package/mediasession.idl +0 -84
  171. package/mediastream-recording.idl +0 -60
  172. package/model-element.idl +0 -9
  173. package/mst-content-hint.idl +0 -18
  174. package/navigation-timing.idl +0 -71
  175. package/netinfo.idl +0 -43
  176. package/notifications.idl +0 -101
  177. package/orientation-event.idl +0 -82
  178. package/orientation-sensor.idl +0 -35
  179. package/page-lifecycle.idl +0 -19
  180. package/paint-timing.idl +0 -7
  181. package/payment-handler.idl +0 -131
  182. package/payment-request.idl +0 -112
  183. package/performance-measure-memory.idl +0 -30
  184. package/performance-timeline.idl +0 -49
  185. package/periodic-background-sync.idl +0 -34
  186. package/permissions-policy.idl +0 -29
  187. package/permissions-request.idl +0 -8
  188. package/permissions-revoke.idl +0 -8
  189. package/permissions.idl +0 -41
  190. package/picture-in-picture.idl +0 -41
  191. package/pointerevents.idl +0 -64
  192. package/pointerlock.idl +0 -28
  193. package/portals.idl +0 -50
  194. package/prefer-current-tab.idl +0 -8
  195. package/prerendering-revamped.idl +0 -15
  196. package/presentation-api.idl +0 -95
  197. package/private-click-measurement.idl +0 -8
  198. package/proximity.idl +0 -18
  199. package/push-api.idl +0 -93
  200. package/raw-camera-access.idl +0 -18
  201. package/referrer-policy.idl +0 -16
  202. package/remote-playback.idl +0 -32
  203. package/reporting.idl +0 -39
  204. package/requestStorageAccessForOrigin.idl +0 -12
  205. package/requestidlecallback.idl +0 -20
  206. package/resize-observer.idl +0 -37
  207. package/resource-timing.idl +0 -39
  208. package/sanitizer-api.idl +0 -38
  209. package/savedata.idl +0 -10
  210. package/scheduling-apis.idl +0 -57
  211. package/screen-capture.idl +0 -85
  212. package/screen-orientation.idl +0 -35
  213. package/screen-wake-lock.idl +0 -24
  214. package/scroll-animations.idl +0 -41
  215. package/scroll-to-text-fragment.idl +0 -12
  216. package/secure-payment-confirmation.idl +0 -52
  217. package/selection-api.idl +0 -46
  218. package/serial.idl +0 -85
  219. package/server-timing.idl +0 -17
  220. package/service-workers.idl +0 -240
  221. package/shape-detection-api.idl +0 -69
  222. package/speech-api.idl +0 -202
  223. package/storage-access.idl +0 -9
  224. package/storage.idl +0 -25
  225. package/streams.idl +0 -222
  226. package/svg-animations.idl +0 -68
  227. package/testutils.idl +0 -9
  228. package/text-detection-api.idl +0 -18
  229. package/touch-events.idl +0 -79
  230. package/trust-token-api.idl +0 -25
  231. package/trusted-types.idl +0 -71
  232. package/turtledove.idl +0 -63
  233. package/ua-client-hints.idl +0 -44
  234. package/uievents.idl +0 -248
  235. package/url.idl +0 -44
  236. package/urlpattern.idl +0 -59
  237. package/user-timing.idl +0 -34
  238. package/vibration.idl +0 -10
  239. package/video-rvfc.idl +0 -27
  240. package/virtual-keyboard.idl +0 -21
  241. package/wai-aria.idl +0 -59
  242. package/wasm-js-api.idl +0 -110
  243. package/wasm-web-api.idl +0 -11
  244. package/web-animations-2.idl +0 -102
  245. package/web-animations.idl +0 -149
  246. package/web-app-launch.idl +0 -19
  247. package/web-bluetooth.idl +0 -251
  248. package/web-locks.idl +0 -50
  249. package/web-nfc.idl +0 -81
  250. package/web-otp.idl +0 -21
  251. package/web-share.idl +0 -16
  252. package/webaudio.idl +0 -674
  253. package/webauthn.idl +0 -349
  254. package/webcodecs-aac-codec-registration.idl +0 -17
  255. package/webcodecs-avc-codec-registration.idl +0 -17
  256. package/webcodecs-flac-codec-registration.idl +0 -13
  257. package/webcodecs-hevc-codec-registration.idl +0 -17
  258. package/webcodecs-opus-codec-registration.idl +0 -22
  259. package/webcodecs.idl +0 -494
  260. package/webcrypto-secure-curves.idl +0 -8
  261. package/webdriver.idl +0 -9
  262. package/webgl1.idl +0 -745
  263. package/webgl2.idl +0 -582
  264. package/webgpu.idl +0 -1267
  265. package/webhid.idl +0 -127
  266. package/webidl.idl +0 -48
  267. package/webmidi.idl +0 -91
  268. package/webnn.idl +0 -549
  269. package/webrtc-encoded-transform.idl +0 -127
  270. package/webrtc-ice.idl +0 -24
  271. package/webrtc-identity.idl +0 -97
  272. package/webrtc-priority.idl +0 -24
  273. package/webrtc-stats.idl +0 -288
  274. package/webrtc-svc.idl +0 -8
  275. package/webrtc.idl +0 -628
  276. package/websockets.idl +0 -48
  277. package/webtransport.idl +0 -142
  278. package/webusb.idl +0 -249
  279. package/webvtt.idl +0 -40
  280. package/webxr-ar-module.idl +0 -29
  281. package/webxr-depth-sensing.idl +0 -57
  282. package/webxr-dom-overlays.idl +0 -31
  283. package/webxr-gamepads-module.idl +0 -8
  284. package/webxr-hand-input.idl +0 -66
  285. package/webxr-hit-test.idl +0 -69
  286. package/webxr-lighting-estimation.idl +0 -39
  287. package/webxr.idl +0 -295
  288. package/webxrlayers.idl +0 -212
  289. package/window-controls-overlay.idl +0 -28
  290. package/window-placement.idl +0 -42
  291. package/xhr.idl +0 -99
package/dom.idl DELETED
@@ -1,645 +0,0 @@
1
- // GENERATED CONTENT - DO NOT EDIT
2
- // Content was automatically extracted by Reffy into webref
3
- // (https://github.com/w3c/webref)
4
- // Source: DOM Standard (https://dom.spec.whatwg.org/)
5
-
6
- [Exposed=*]
7
- interface Event {
8
- constructor(DOMString type, optional EventInit eventInitDict = {});
9
-
10
- readonly attribute DOMString type;
11
- readonly attribute EventTarget? target;
12
- readonly attribute EventTarget? srcElement; // legacy
13
- readonly attribute EventTarget? currentTarget;
14
- sequence<EventTarget> composedPath();
15
-
16
- const unsigned short NONE = 0;
17
- const unsigned short CAPTURING_PHASE = 1;
18
- const unsigned short AT_TARGET = 2;
19
- const unsigned short BUBBLING_PHASE = 3;
20
- readonly attribute unsigned short eventPhase;
21
-
22
- undefined stopPropagation();
23
- attribute boolean cancelBubble; // legacy alias of .stopPropagation()
24
- undefined stopImmediatePropagation();
25
-
26
- readonly attribute boolean bubbles;
27
- readonly attribute boolean cancelable;
28
- attribute boolean returnValue; // legacy
29
- undefined preventDefault();
30
- readonly attribute boolean defaultPrevented;
31
- readonly attribute boolean composed;
32
-
33
- [LegacyUnforgeable] readonly attribute boolean isTrusted;
34
- readonly attribute DOMHighResTimeStamp timeStamp;
35
-
36
- undefined initEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false); // legacy
37
- };
38
-
39
- dictionary EventInit {
40
- boolean bubbles = false;
41
- boolean cancelable = false;
42
- boolean composed = false;
43
- };
44
-
45
- partial interface Window {
46
- [Replaceable] readonly attribute (Event or undefined) event; // legacy
47
- };
48
-
49
- [Exposed=*]
50
- interface CustomEvent : Event {
51
- constructor(DOMString type, optional CustomEventInit eventInitDict = {});
52
-
53
- readonly attribute any detail;
54
-
55
- undefined initCustomEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false, optional any detail = null); // legacy
56
- };
57
-
58
- dictionary CustomEventInit : EventInit {
59
- any detail = null;
60
- };
61
-
62
- [Exposed=*]
63
- interface EventTarget {
64
- constructor();
65
-
66
- undefined addEventListener(DOMString type, EventListener? callback, optional (AddEventListenerOptions or boolean) options = {});
67
- undefined removeEventListener(DOMString type, EventListener? callback, optional (EventListenerOptions or boolean) options = {});
68
- boolean dispatchEvent(Event event);
69
- };
70
-
71
- callback interface EventListener {
72
- undefined handleEvent(Event event);
73
- };
74
-
75
- dictionary EventListenerOptions {
76
- boolean capture = false;
77
- };
78
-
79
- dictionary AddEventListenerOptions : EventListenerOptions {
80
- boolean passive;
81
- boolean once = false;
82
- AbortSignal signal;
83
- };
84
-
85
- [Exposed=*]
86
- interface AbortController {
87
- constructor();
88
-
89
- [SameObject] readonly attribute AbortSignal signal;
90
-
91
- undefined abort(optional any reason);
92
- };
93
-
94
- [Exposed=*]
95
- interface AbortSignal : EventTarget {
96
- [NewObject] static AbortSignal abort(optional any reason);
97
- [Exposed=(Window,Worker), NewObject] static AbortSignal timeout([EnforceRange] unsigned long long milliseconds);
98
-
99
- readonly attribute boolean aborted;
100
- readonly attribute any reason;
101
- undefined throwIfAborted();
102
-
103
- attribute EventHandler onabort;
104
- };
105
- interface mixin NonElementParentNode {
106
- Element? getElementById(DOMString elementId);
107
- };
108
- Document includes NonElementParentNode;
109
- DocumentFragment includes NonElementParentNode;
110
-
111
- interface mixin DocumentOrShadowRoot {
112
- };
113
- Document includes DocumentOrShadowRoot;
114
- ShadowRoot includes DocumentOrShadowRoot;
115
-
116
- interface mixin ParentNode {
117
- [SameObject] readonly attribute HTMLCollection children;
118
- readonly attribute Element? firstElementChild;
119
- readonly attribute Element? lastElementChild;
120
- readonly attribute unsigned long childElementCount;
121
-
122
- [CEReactions, Unscopable] undefined prepend((Node or DOMString)... nodes);
123
- [CEReactions, Unscopable] undefined append((Node or DOMString)... nodes);
124
- [CEReactions, Unscopable] undefined replaceChildren((Node or DOMString)... nodes);
125
-
126
- Element? querySelector(DOMString selectors);
127
- [NewObject] NodeList querySelectorAll(DOMString selectors);
128
- };
129
- Document includes ParentNode;
130
- DocumentFragment includes ParentNode;
131
- Element includes ParentNode;
132
-
133
- interface mixin NonDocumentTypeChildNode {
134
- readonly attribute Element? previousElementSibling;
135
- readonly attribute Element? nextElementSibling;
136
- };
137
- Element includes NonDocumentTypeChildNode;
138
- CharacterData includes NonDocumentTypeChildNode;
139
-
140
- interface mixin ChildNode {
141
- [CEReactions, Unscopable] undefined before((Node or DOMString)... nodes);
142
- [CEReactions, Unscopable] undefined after((Node or DOMString)... nodes);
143
- [CEReactions, Unscopable] undefined replaceWith((Node or DOMString)... nodes);
144
- [CEReactions, Unscopable] undefined remove();
145
- };
146
- DocumentType includes ChildNode;
147
- Element includes ChildNode;
148
- CharacterData includes ChildNode;
149
-
150
- interface mixin Slottable {
151
- readonly attribute HTMLSlotElement? assignedSlot;
152
- };
153
- Element includes Slottable;
154
- Text includes Slottable;
155
-
156
- [Exposed=Window]
157
- interface NodeList {
158
- getter Node? item(unsigned long index);
159
- readonly attribute unsigned long length;
160
- iterable<Node>;
161
- };
162
-
163
- [Exposed=Window, LegacyUnenumerableNamedProperties]
164
- interface HTMLCollection {
165
- readonly attribute unsigned long length;
166
- getter Element? item(unsigned long index);
167
- getter Element? namedItem(DOMString name);
168
- };
169
-
170
- [Exposed=Window]
171
- interface MutationObserver {
172
- constructor(MutationCallback callback);
173
-
174
- undefined observe(Node target, optional MutationObserverInit options = {});
175
- undefined disconnect();
176
- sequence<MutationRecord> takeRecords();
177
- };
178
-
179
- callback MutationCallback = undefined (sequence<MutationRecord> mutations, MutationObserver observer);
180
-
181
- dictionary MutationObserverInit {
182
- boolean childList = false;
183
- boolean attributes;
184
- boolean characterData;
185
- boolean subtree = false;
186
- boolean attributeOldValue;
187
- boolean characterDataOldValue;
188
- sequence<DOMString> attributeFilter;
189
- };
190
-
191
- [Exposed=Window]
192
- interface MutationRecord {
193
- readonly attribute DOMString type;
194
- [SameObject] readonly attribute Node target;
195
- [SameObject] readonly attribute NodeList addedNodes;
196
- [SameObject] readonly attribute NodeList removedNodes;
197
- readonly attribute Node? previousSibling;
198
- readonly attribute Node? nextSibling;
199
- readonly attribute DOMString? attributeName;
200
- readonly attribute DOMString? attributeNamespace;
201
- readonly attribute DOMString? oldValue;
202
- };
203
-
204
- [Exposed=Window]
205
- interface Node : EventTarget {
206
- const unsigned short ELEMENT_NODE = 1;
207
- const unsigned short ATTRIBUTE_NODE = 2;
208
- const unsigned short TEXT_NODE = 3;
209
- const unsigned short CDATA_SECTION_NODE = 4;
210
- const unsigned short ENTITY_REFERENCE_NODE = 5; // legacy
211
- const unsigned short ENTITY_NODE = 6; // legacy
212
- const unsigned short PROCESSING_INSTRUCTION_NODE = 7;
213
- const unsigned short COMMENT_NODE = 8;
214
- const unsigned short DOCUMENT_NODE = 9;
215
- const unsigned short DOCUMENT_TYPE_NODE = 10;
216
- const unsigned short DOCUMENT_FRAGMENT_NODE = 11;
217
- const unsigned short NOTATION_NODE = 12; // legacy
218
- readonly attribute unsigned short nodeType;
219
- readonly attribute DOMString nodeName;
220
-
221
- readonly attribute USVString baseURI;
222
-
223
- readonly attribute boolean isConnected;
224
- readonly attribute Document? ownerDocument;
225
- Node getRootNode(optional GetRootNodeOptions options = {});
226
- readonly attribute Node? parentNode;
227
- readonly attribute Element? parentElement;
228
- boolean hasChildNodes();
229
- [SameObject] readonly attribute NodeList childNodes;
230
- readonly attribute Node? firstChild;
231
- readonly attribute Node? lastChild;
232
- readonly attribute Node? previousSibling;
233
- readonly attribute Node? nextSibling;
234
-
235
- [CEReactions] attribute DOMString? nodeValue;
236
- [CEReactions] attribute DOMString? textContent;
237
- [CEReactions] undefined normalize();
238
-
239
- [CEReactions, NewObject] Node cloneNode(optional boolean deep = false);
240
- boolean isEqualNode(Node? otherNode);
241
- boolean isSameNode(Node? otherNode); // legacy alias of ===
242
-
243
- const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01;
244
- const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02;
245
- const unsigned short DOCUMENT_POSITION_FOLLOWING = 0x04;
246
- const unsigned short DOCUMENT_POSITION_CONTAINS = 0x08;
247
- const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10;
248
- const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20;
249
- unsigned short compareDocumentPosition(Node other);
250
- boolean contains(Node? other);
251
-
252
- DOMString? lookupPrefix(DOMString? namespace);
253
- DOMString? lookupNamespaceURI(DOMString? prefix);
254
- boolean isDefaultNamespace(DOMString? namespace);
255
-
256
- [CEReactions] Node insertBefore(Node node, Node? child);
257
- [CEReactions] Node appendChild(Node node);
258
- [CEReactions] Node replaceChild(Node node, Node child);
259
- [CEReactions] Node removeChild(Node child);
260
- };
261
-
262
- dictionary GetRootNodeOptions {
263
- boolean composed = false;
264
- };
265
-
266
- [Exposed=Window]
267
- interface Document : Node {
268
- constructor();
269
-
270
- [SameObject] readonly attribute DOMImplementation implementation;
271
- readonly attribute USVString URL;
272
- readonly attribute USVString documentURI;
273
- readonly attribute DOMString compatMode;
274
- readonly attribute DOMString characterSet;
275
- readonly attribute DOMString charset; // legacy alias of .characterSet
276
- readonly attribute DOMString inputEncoding; // legacy alias of .characterSet
277
- readonly attribute DOMString contentType;
278
-
279
- readonly attribute DocumentType? doctype;
280
- readonly attribute Element? documentElement;
281
- HTMLCollection getElementsByTagName(DOMString qualifiedName);
282
- HTMLCollection getElementsByTagNameNS(DOMString? namespace, DOMString localName);
283
- HTMLCollection getElementsByClassName(DOMString classNames);
284
-
285
- [CEReactions, NewObject] Element createElement(DOMString localName, optional (DOMString or ElementCreationOptions) options = {});
286
- [CEReactions, NewObject] Element createElementNS(DOMString? namespace, DOMString qualifiedName, optional (DOMString or ElementCreationOptions) options = {});
287
- [NewObject] DocumentFragment createDocumentFragment();
288
- [NewObject] Text createTextNode(DOMString data);
289
- [NewObject] CDATASection createCDATASection(DOMString data);
290
- [NewObject] Comment createComment(DOMString data);
291
- [NewObject] ProcessingInstruction createProcessingInstruction(DOMString target, DOMString data);
292
-
293
- [CEReactions, NewObject] Node importNode(Node node, optional boolean deep = false);
294
- [CEReactions] Node adoptNode(Node node);
295
-
296
- [NewObject] Attr createAttribute(DOMString localName);
297
- [NewObject] Attr createAttributeNS(DOMString? namespace, DOMString qualifiedName);
298
-
299
- [NewObject] Event createEvent(DOMString interface); // legacy
300
-
301
- [NewObject] Range createRange();
302
-
303
- // NodeFilter.SHOW_ALL = 0xFFFFFFFF
304
- [NewObject] NodeIterator createNodeIterator(Node root, optional unsigned long whatToShow = 0xFFFFFFFF, optional NodeFilter? filter = null);
305
- [NewObject] TreeWalker createTreeWalker(Node root, optional unsigned long whatToShow = 0xFFFFFFFF, optional NodeFilter? filter = null);
306
- };
307
-
308
- [Exposed=Window]
309
- interface XMLDocument : Document {};
310
-
311
- dictionary ElementCreationOptions {
312
- DOMString is;
313
- };
314
-
315
- [Exposed=Window]
316
- interface DOMImplementation {
317
- [NewObject] DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId, DOMString systemId);
318
- [NewObject] XMLDocument createDocument(DOMString? namespace, [LegacyNullToEmptyString] DOMString qualifiedName, optional DocumentType? doctype = null);
319
- [NewObject] Document createHTMLDocument(optional DOMString title);
320
-
321
- boolean hasFeature(); // useless; always returns true
322
- };
323
-
324
- [Exposed=Window]
325
- interface DocumentType : Node {
326
- readonly attribute DOMString name;
327
- readonly attribute DOMString publicId;
328
- readonly attribute DOMString systemId;
329
- };
330
-
331
- [Exposed=Window]
332
- interface DocumentFragment : Node {
333
- constructor();
334
- };
335
-
336
- [Exposed=Window]
337
- interface ShadowRoot : DocumentFragment {
338
- readonly attribute ShadowRootMode mode;
339
- readonly attribute boolean delegatesFocus;
340
- readonly attribute SlotAssignmentMode slotAssignment;
341
- readonly attribute Element host;
342
- attribute EventHandler onslotchange;
343
- };
344
-
345
- enum ShadowRootMode { "open", "closed" };
346
- enum SlotAssignmentMode { "manual", "named" };
347
-
348
- [Exposed=Window]
349
- interface Element : Node {
350
- readonly attribute DOMString? namespaceURI;
351
- readonly attribute DOMString? prefix;
352
- readonly attribute DOMString localName;
353
- readonly attribute DOMString tagName;
354
-
355
- [CEReactions] attribute DOMString id;
356
- [CEReactions] attribute DOMString className;
357
- [SameObject, PutForwards=value] readonly attribute DOMTokenList classList;
358
- [CEReactions, Unscopable] attribute DOMString slot;
359
-
360
- boolean hasAttributes();
361
- [SameObject] readonly attribute NamedNodeMap attributes;
362
- sequence<DOMString> getAttributeNames();
363
- DOMString? getAttribute(DOMString qualifiedName);
364
- DOMString? getAttributeNS(DOMString? namespace, DOMString localName);
365
- [CEReactions] undefined setAttribute(DOMString qualifiedName, DOMString value);
366
- [CEReactions] undefined setAttributeNS(DOMString? namespace, DOMString qualifiedName, DOMString value);
367
- [CEReactions] undefined removeAttribute(DOMString qualifiedName);
368
- [CEReactions] undefined removeAttributeNS(DOMString? namespace, DOMString localName);
369
- [CEReactions] boolean toggleAttribute(DOMString qualifiedName, optional boolean force);
370
- boolean hasAttribute(DOMString qualifiedName);
371
- boolean hasAttributeNS(DOMString? namespace, DOMString localName);
372
-
373
- Attr? getAttributeNode(DOMString qualifiedName);
374
- Attr? getAttributeNodeNS(DOMString? namespace, DOMString localName);
375
- [CEReactions] Attr? setAttributeNode(Attr attr);
376
- [CEReactions] Attr? setAttributeNodeNS(Attr attr);
377
- [CEReactions] Attr removeAttributeNode(Attr attr);
378
-
379
- ShadowRoot attachShadow(ShadowRootInit init);
380
- readonly attribute ShadowRoot? shadowRoot;
381
-
382
- Element? closest(DOMString selectors);
383
- boolean matches(DOMString selectors);
384
- boolean webkitMatchesSelector(DOMString selectors); // legacy alias of .matches
385
-
386
- HTMLCollection getElementsByTagName(DOMString qualifiedName);
387
- HTMLCollection getElementsByTagNameNS(DOMString? namespace, DOMString localName);
388
- HTMLCollection getElementsByClassName(DOMString classNames);
389
-
390
- [CEReactions] Element? insertAdjacentElement(DOMString where, Element element); // legacy
391
- undefined insertAdjacentText(DOMString where, DOMString data); // legacy
392
- };
393
-
394
- dictionary ShadowRootInit {
395
- required ShadowRootMode mode;
396
- boolean delegatesFocus = false;
397
- SlotAssignmentMode slotAssignment = "named";
398
- };
399
-
400
- [Exposed=Window,
401
- LegacyUnenumerableNamedProperties]
402
- interface NamedNodeMap {
403
- readonly attribute unsigned long length;
404
- getter Attr? item(unsigned long index);
405
- getter Attr? getNamedItem(DOMString qualifiedName);
406
- Attr? getNamedItemNS(DOMString? namespace, DOMString localName);
407
- [CEReactions] Attr? setNamedItem(Attr attr);
408
- [CEReactions] Attr? setNamedItemNS(Attr attr);
409
- [CEReactions] Attr removeNamedItem(DOMString qualifiedName);
410
- [CEReactions] Attr removeNamedItemNS(DOMString? namespace, DOMString localName);
411
- };
412
-
413
- [Exposed=Window]
414
- interface Attr : Node {
415
- readonly attribute DOMString? namespaceURI;
416
- readonly attribute DOMString? prefix;
417
- readonly attribute DOMString localName;
418
- readonly attribute DOMString name;
419
- [CEReactions] attribute DOMString value;
420
-
421
- readonly attribute Element? ownerElement;
422
-
423
- readonly attribute boolean specified; // useless; always returns true
424
- };
425
- [Exposed=Window]
426
- interface CharacterData : Node {
427
- attribute [LegacyNullToEmptyString] DOMString data;
428
- readonly attribute unsigned long length;
429
- DOMString substringData(unsigned long offset, unsigned long count);
430
- undefined appendData(DOMString data);
431
- undefined insertData(unsigned long offset, DOMString data);
432
- undefined deleteData(unsigned long offset, unsigned long count);
433
- undefined replaceData(unsigned long offset, unsigned long count, DOMString data);
434
- };
435
-
436
- [Exposed=Window]
437
- interface Text : CharacterData {
438
- constructor(optional DOMString data = "");
439
-
440
- [NewObject] Text splitText(unsigned long offset);
441
- readonly attribute DOMString wholeText;
442
- };
443
-
444
- [Exposed=Window]
445
- interface CDATASection : Text {
446
- };
447
- [Exposed=Window]
448
- interface ProcessingInstruction : CharacterData {
449
- readonly attribute DOMString target;
450
- };
451
- [Exposed=Window]
452
- interface Comment : CharacterData {
453
- constructor(optional DOMString data = "");
454
- };
455
-
456
- [Exposed=Window]
457
- interface AbstractRange {
458
- readonly attribute Node startContainer;
459
- readonly attribute unsigned long startOffset;
460
- readonly attribute Node endContainer;
461
- readonly attribute unsigned long endOffset;
462
- readonly attribute boolean collapsed;
463
- };
464
-
465
- dictionary StaticRangeInit {
466
- required Node startContainer;
467
- required unsigned long startOffset;
468
- required Node endContainer;
469
- required unsigned long endOffset;
470
- };
471
-
472
- [Exposed=Window]
473
- interface StaticRange : AbstractRange {
474
- constructor(StaticRangeInit init);
475
- };
476
-
477
- [Exposed=Window]
478
- interface Range : AbstractRange {
479
- constructor();
480
-
481
- readonly attribute Node commonAncestorContainer;
482
-
483
- undefined setStart(Node node, unsigned long offset);
484
- undefined setEnd(Node node, unsigned long offset);
485
- undefined setStartBefore(Node node);
486
- undefined setStartAfter(Node node);
487
- undefined setEndBefore(Node node);
488
- undefined setEndAfter(Node node);
489
- undefined collapse(optional boolean toStart = false);
490
- undefined selectNode(Node node);
491
- undefined selectNodeContents(Node node);
492
-
493
- const unsigned short START_TO_START = 0;
494
- const unsigned short START_TO_END = 1;
495
- const unsigned short END_TO_END = 2;
496
- const unsigned short END_TO_START = 3;
497
- short compareBoundaryPoints(unsigned short how, Range sourceRange);
498
-
499
- [CEReactions] undefined deleteContents();
500
- [CEReactions, NewObject] DocumentFragment extractContents();
501
- [CEReactions, NewObject] DocumentFragment cloneContents();
502
- [CEReactions] undefined insertNode(Node node);
503
- [CEReactions] undefined surroundContents(Node newParent);
504
-
505
- [NewObject] Range cloneRange();
506
- undefined detach();
507
-
508
- boolean isPointInRange(Node node, unsigned long offset);
509
- short comparePoint(Node node, unsigned long offset);
510
-
511
- boolean intersectsNode(Node node);
512
-
513
- stringifier;
514
- };
515
-
516
- [Exposed=Window]
517
- interface NodeIterator {
518
- [SameObject] readonly attribute Node root;
519
- readonly attribute Node referenceNode;
520
- readonly attribute boolean pointerBeforeReferenceNode;
521
- readonly attribute unsigned long whatToShow;
522
- readonly attribute NodeFilter? filter;
523
-
524
- Node? nextNode();
525
- Node? previousNode();
526
-
527
- undefined detach();
528
- };
529
-
530
- [Exposed=Window]
531
- interface TreeWalker {
532
- [SameObject] readonly attribute Node root;
533
- readonly attribute unsigned long whatToShow;
534
- readonly attribute NodeFilter? filter;
535
- attribute Node currentNode;
536
-
537
- Node? parentNode();
538
- Node? firstChild();
539
- Node? lastChild();
540
- Node? previousSibling();
541
- Node? nextSibling();
542
- Node? previousNode();
543
- Node? nextNode();
544
- };
545
- [Exposed=Window]
546
- callback interface NodeFilter {
547
- // Constants for acceptNode()
548
- const unsigned short FILTER_ACCEPT = 1;
549
- const unsigned short FILTER_REJECT = 2;
550
- const unsigned short FILTER_SKIP = 3;
551
-
552
- // Constants for whatToShow
553
- const unsigned long SHOW_ALL = 0xFFFFFFFF;
554
- const unsigned long SHOW_ELEMENT = 0x1;
555
- const unsigned long SHOW_ATTRIBUTE = 0x2;
556
- const unsigned long SHOW_TEXT = 0x4;
557
- const unsigned long SHOW_CDATA_SECTION = 0x8;
558
- const unsigned long SHOW_ENTITY_REFERENCE = 0x10; // legacy
559
- const unsigned long SHOW_ENTITY = 0x20; // legacy
560
- const unsigned long SHOW_PROCESSING_INSTRUCTION = 0x40;
561
- const unsigned long SHOW_COMMENT = 0x80;
562
- const unsigned long SHOW_DOCUMENT = 0x100;
563
- const unsigned long SHOW_DOCUMENT_TYPE = 0x200;
564
- const unsigned long SHOW_DOCUMENT_FRAGMENT = 0x400;
565
- const unsigned long SHOW_NOTATION = 0x800; // legacy
566
-
567
- unsigned short acceptNode(Node node);
568
- };
569
-
570
- [Exposed=Window]
571
- interface DOMTokenList {
572
- readonly attribute unsigned long length;
573
- getter DOMString? item(unsigned long index);
574
- boolean contains(DOMString token);
575
- [CEReactions] undefined add(DOMString... tokens);
576
- [CEReactions] undefined remove(DOMString... tokens);
577
- [CEReactions] boolean toggle(DOMString token, optional boolean force);
578
- [CEReactions] boolean replace(DOMString token, DOMString newToken);
579
- boolean supports(DOMString token);
580
- [CEReactions] stringifier attribute DOMString value;
581
- iterable<DOMString>;
582
- };
583
-
584
- [Exposed=Window]
585
- interface XPathResult {
586
- const unsigned short ANY_TYPE = 0;
587
- const unsigned short NUMBER_TYPE = 1;
588
- const unsigned short STRING_TYPE = 2;
589
- const unsigned short BOOLEAN_TYPE = 3;
590
- const unsigned short UNORDERED_NODE_ITERATOR_TYPE = 4;
591
- const unsigned short ORDERED_NODE_ITERATOR_TYPE = 5;
592
- const unsigned short UNORDERED_NODE_SNAPSHOT_TYPE = 6;
593
- const unsigned short ORDERED_NODE_SNAPSHOT_TYPE = 7;
594
- const unsigned short ANY_UNORDERED_NODE_TYPE = 8;
595
- const unsigned short FIRST_ORDERED_NODE_TYPE = 9;
596
-
597
- readonly attribute unsigned short resultType;
598
- readonly attribute unrestricted double numberValue;
599
- readonly attribute DOMString stringValue;
600
- readonly attribute boolean booleanValue;
601
- readonly attribute Node? singleNodeValue;
602
- readonly attribute boolean invalidIteratorState;
603
- readonly attribute unsigned long snapshotLength;
604
-
605
- Node? iterateNext();
606
- Node? snapshotItem(unsigned long index);
607
- };
608
-
609
- [Exposed=Window]
610
- interface XPathExpression {
611
- // XPathResult.ANY_TYPE = 0
612
- XPathResult evaluate(Node contextNode, optional unsigned short type = 0, optional XPathResult? result = null);
613
- };
614
-
615
- callback interface XPathNSResolver {
616
- DOMString? lookupNamespaceURI(DOMString? prefix);
617
- };
618
-
619
- interface mixin XPathEvaluatorBase {
620
- [NewObject] XPathExpression createExpression(DOMString expression, optional XPathNSResolver? resolver = null);
621
- Node createNSResolver(Node nodeResolver); // legacy
622
- // XPathResult.ANY_TYPE = 0
623
- XPathResult evaluate(DOMString expression, Node contextNode, optional XPathNSResolver? resolver = null, optional unsigned short type = 0, optional XPathResult? result = null);
624
- };
625
- Document includes XPathEvaluatorBase;
626
-
627
- [Exposed=Window]
628
- interface XPathEvaluator {
629
- constructor();
630
- };
631
-
632
- XPathEvaluator includes XPathEvaluatorBase;
633
-
634
- [Exposed=Window]
635
- interface XSLTProcessor {
636
- constructor();
637
- undefined importStylesheet(Node style);
638
- [CEReactions] DocumentFragment transformToFragment(Node source, Document output);
639
- [CEReactions] Document transformToDocument(Node source);
640
- undefined setParameter([LegacyNullToEmptyString] DOMString namespaceURI, DOMString localName, any value);
641
- any getParameter([LegacyNullToEmptyString] DOMString namespaceURI, DOMString localName);
642
- undefined removeParameter([LegacyNullToEmptyString] DOMString namespaceURI, DOMString localName);
643
- undefined clearParameters();
644
- undefined reset();
645
- };