@rescript/webapi 0.1.0-experimental-a0d5168 → 0.1.0-experimental-47c6b2c

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 (133) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/src/CSSFontLoadingAPI/FontFaceSet.res +3 -79
  4. package/src/CanvasAPI/OffscreenCanvas.res +3 -79
  5. package/src/ChannelMessagingAPI/MessagePort.res +3 -81
  6. package/src/ClipboardAPI/Clipboard.res +3 -80
  7. package/src/DOMAPI/Animation.res +3 -80
  8. package/src/DOMAPI/CharacterData.res +68 -231
  9. package/src/DOMAPI/Comment.res +4 -271
  10. package/src/DOMAPI/Document.res +4 -178
  11. package/src/DOMAPI/DocumentFragment.res +58 -220
  12. package/src/DOMAPI/Element.res +313 -477
  13. package/src/DOMAPI/HTMLAnchorElement.res +3 -691
  14. package/src/DOMAPI/HTMLAreaElement.res +3 -685
  15. package/src/DOMAPI/HTMLAudioElement.res +3 -748
  16. package/src/DOMAPI/HTMLBRElement.res +3 -684
  17. package/src/DOMAPI/HTMLBaseElement.res +3 -685
  18. package/src/DOMAPI/HTMLBodyElement.res +3 -685
  19. package/src/DOMAPI/HTMLButtonElement.res +3 -691
  20. package/src/DOMAPI/HTMLCanvasElement.res +3 -691
  21. package/src/DOMAPI/HTMLDListElement.res +3 -688
  22. package/src/DOMAPI/HTMLDataElement.res +3 -685
  23. package/src/DOMAPI/HTMLDataListElement.res +3 -695
  24. package/src/DOMAPI/HTMLDialogElement.res +3 -691
  25. package/src/DOMAPI/HTMLDivElement.res +3 -684
  26. package/src/DOMAPI/HTMLElement.res +40 -666
  27. package/src/DOMAPI/HTMLEmbedElement.res +3 -688
  28. package/src/DOMAPI/HTMLFieldSetElement.res +3 -695
  29. package/src/DOMAPI/HTMLFormElement.res +3 -685
  30. package/src/DOMAPI/HTMLFrameSetElement.res +3 -695
  31. package/src/DOMAPI/HTMLHRElement.res +3 -684
  32. package/src/DOMAPI/HTMLHeadElement.res +3 -685
  33. package/src/DOMAPI/HTMLHeadingElement.res +3 -691
  34. package/src/DOMAPI/HTMLHtmlElement.res +3 -685
  35. package/src/DOMAPI/HTMLIFrameElement.res +3 -691
  36. package/src/DOMAPI/HTMLImageElement.res +3 -688
  37. package/src/DOMAPI/HTMLInputElement.res +3 -688
  38. package/src/DOMAPI/HTMLLIElement.res +3 -684
  39. package/src/DOMAPI/HTMLLabelElement.res +3 -688
  40. package/src/DOMAPI/HTMLLegendElement.res +3 -691
  41. package/src/DOMAPI/HTMLLinkElement.res +3 -685
  42. package/src/DOMAPI/HTMLMapElement.res +3 -684
  43. package/src/DOMAPI/HTMLMediaElement.res +49 -722
  44. package/src/DOMAPI/HTMLMenuElement.res +3 -685
  45. package/src/DOMAPI/HTMLMetaElement.res +3 -685
  46. package/src/DOMAPI/HTMLMeterElement.res +3 -688
  47. package/src/DOMAPI/HTMLModElement.res +3 -684
  48. package/src/DOMAPI/HTMLOListElement.res +3 -688
  49. package/src/DOMAPI/HTMLObjectElement.res +3 -691
  50. package/src/DOMAPI/HTMLOptGroupElement.res +3 -695
  51. package/src/DOMAPI/HTMLOptionElement.res +3 -691
  52. package/src/DOMAPI/HTMLOutputElement.res +3 -691
  53. package/src/DOMAPI/HTMLParagraphElement.res +3 -699
  54. package/src/DOMAPI/HTMLPictureElement.res +3 -691
  55. package/src/DOMAPI/HTMLPreElement.res +3 -684
  56. package/src/DOMAPI/HTMLProgressElement.res +3 -695
  57. package/src/DOMAPI/HTMLQuoteElement.res +3 -688
  58. package/src/DOMAPI/HTMLScriptElement.res +3 -691
  59. package/src/DOMAPI/HTMLSelectElement.res +4 -692
  60. package/src/DOMAPI/HTMLSlotElement.res +3 -685
  61. package/src/DOMAPI/HTMLSourceElement.res +3 -691
  62. package/src/DOMAPI/HTMLSpanElement.res +3 -685
  63. package/src/DOMAPI/HTMLStyleElement.res +3 -688
  64. package/src/DOMAPI/HTMLTableCaptionElement.res +3 -712
  65. package/src/DOMAPI/HTMLTableCellElement.res +3 -699
  66. package/src/DOMAPI/HTMLTableElement.res +3 -688
  67. package/src/DOMAPI/HTMLTableRowElement.res +3 -695
  68. package/src/DOMAPI/HTMLTableSectionElement.res +3 -712
  69. package/src/DOMAPI/HTMLTemplateElement.res +3 -695
  70. package/src/DOMAPI/HTMLTextAreaElement.res +3 -695
  71. package/src/DOMAPI/HTMLTimeElement.res +3 -685
  72. package/src/DOMAPI/HTMLTitleElement.res +3 -688
  73. package/src/DOMAPI/HTMLTrackElement.res +3 -688
  74. package/src/DOMAPI/HTMLUListElement.res +3 -688
  75. package/src/DOMAPI/HTMLVideoElement.res +3 -748
  76. package/src/DOMAPI/MediaQueryList.res +3 -80
  77. package/src/DOMAPI/Node.res +59 -124
  78. package/src/DOMAPI/SVGGraphicsElement.res +4 -660
  79. package/src/DOMAPI/ScreenOrientation.res +3 -79
  80. package/src/DOMAPI/ShadowRoot.res +4 -255
  81. package/src/DOMAPI/Text.res +4 -271
  82. package/src/DOMAPI/TextTrackList.res +3 -79
  83. package/src/DOMAPI/Window.res +4 -80
  84. package/src/EncryptedMediaExtensionsAPI/MediaKeySession.res +3 -80
  85. package/src/EventAPI/AbortSignal.res +3 -80
  86. package/src/EventAPI/Event.res +28 -16
  87. package/src/EventAPI/EventTarget.res +51 -39
  88. package/src/FileAPI/Blob.res +26 -15
  89. package/src/FileAPI/File.res +4 -31
  90. package/src/IndexedDBAPI/IDBDatabase.res +3 -79
  91. package/src/IndexedDBAPI/IDBTransaction.res +3 -80
  92. package/src/MediaCaptureAndStreamsAPI/MediaDevices.res +3 -79
  93. package/src/MediaCaptureAndStreamsAPI/MediaStream.res +3 -80
  94. package/src/MediaCaptureAndStreamsAPI/MediaStreamTrack.res +3 -81
  95. package/src/NotificationAPI/Notification.res +3 -80
  96. package/src/PerformanceAPI/Performance.res +3 -79
  97. package/src/RemotePlaybackAPI/RemotePlayback.res +3 -80
  98. package/src/ScreenWakeLockAPI/WakeLockSentinel.res +3 -79
  99. package/src/ServiceWorkerAPI/ServiceWorker.res +3 -79
  100. package/src/ServiceWorkerAPI/ServiceWorkerContainer.res +3 -79
  101. package/src/ServiceWorkerAPI/ServiceWorkerRegistration.res +3 -79
  102. package/src/WebAudioAPI/AnalyserNode.res +4 -148
  103. package/src/WebAudioAPI/AudioBufferSourceNode.res +4 -162
  104. package/src/WebAudioAPI/AudioContext.res +4 -212
  105. package/src/WebAudioAPI/AudioNode.res +39 -113
  106. package/src/WebAudioAPI/AudioProcessingEvent.res +4 -30
  107. package/src/WebAudioAPI/AudioScheduledSourceNode.res +20 -162
  108. package/src/WebAudioAPI/AudioWorkletNode.res +4 -149
  109. package/src/WebAudioAPI/BaseAudioContext.res +85 -155
  110. package/src/WebAudioAPI/BiquadFilterNode.res +4 -149
  111. package/src/WebAudioAPI/ChannelMergerNode.res +4 -149
  112. package/src/WebAudioAPI/ChannelSplitterNode.res +4 -149
  113. package/src/WebAudioAPI/ConstantSourceNode.res +4 -162
  114. package/src/WebAudioAPI/ConvolverNode.res +4 -149
  115. package/src/WebAudioAPI/DelayNode.res +4 -143
  116. package/src/WebAudioAPI/DynamicsCompressorNode.res +4 -152
  117. package/src/WebAudioAPI/GainNode.res +4 -142
  118. package/src/WebAudioAPI/IIRFilterNode.res +4 -149
  119. package/src/WebAudioAPI/MediaElementAudioSourceNode.res +4 -158
  120. package/src/WebAudioAPI/MediaStreamAudioDestinationNode.res +4 -158
  121. package/src/WebAudioAPI/MediaStreamAudioSourceNode.res +4 -158
  122. package/src/WebAudioAPI/OfflineAudioCompletionEvent.res +4 -30
  123. package/src/WebAudioAPI/OfflineAudioContext.res +4 -214
  124. package/src/WebAudioAPI/OscillatorNode.res +4 -162
  125. package/src/WebAudioAPI/PannerNode.res +4 -143
  126. package/src/WebAudioAPI/StereoPannerNode.res +4 -149
  127. package/src/WebAudioAPI/WaveShaperNode.res +4 -149
  128. package/src/WebSocketsAPI/CloseEvent.res +4 -30
  129. package/src/WebSocketsAPI/WebSocket.res +3 -79
  130. package/src/WebSpeechAPI/SpeechSynthesis.res +3 -79
  131. package/src/WebSpeechAPI/SpeechSynthesisUtterance.res +4 -81
  132. package/src/WebStorageAPI/StorageEvent.res +4 -30
  133. package/src/WebVTTAPI/TextTrack.res +3 -79
@@ -1,717 +1,8 @@
1
1
  open DOMAPI
2
- open Prelude
3
- open EventAPI
4
2
 
5
- external asHTMLElement: htmlTableSectionElement => htmlElement = "%identity"
6
- external asElement: htmlTableSectionElement => element = "%identity"
7
- external asNode: htmlTableSectionElement => node = "%identity"
8
- external asEventTarget: htmlTableSectionElement => eventTarget = "%identity"
9
- /**
10
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/focus)
11
- */
12
- @send
13
- external focus: (htmlTableSectionElement, ~options: focusOptions=?) => unit = "focus"
14
-
15
- /**
16
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/blur)
17
- */
18
- @send
19
- external blur: htmlTableSectionElement => unit = "blur"
20
-
21
- /**
22
- Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
23
-
24
- Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
25
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/prepend)
26
- */
27
- @send
28
- external prepend: (htmlTableSectionElement, node) => unit = "prepend"
29
-
30
- /**
31
- Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
32
-
33
- Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
34
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/prepend)
35
- */
36
- @send
37
- external prepend2: (htmlTableSectionElement, string) => unit = "prepend"
38
-
39
- /**
40
- Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
41
-
42
- Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
43
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/append)
44
- */
45
- @send
46
- external append: (htmlTableSectionElement, node) => unit = "append"
47
-
48
- /**
49
- Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
50
-
51
- Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
52
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/append)
53
- */
54
- @send
55
- external append2: (htmlTableSectionElement, string) => unit = "append"
56
-
57
- /**
58
- Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.
59
-
60
- Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
61
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/replaceChildren)
62
- */
63
- @send
64
- external replaceChildren: (htmlTableSectionElement, node) => unit = "replaceChildren"
65
-
66
- /**
67
- Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.
68
-
69
- Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
70
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/replaceChildren)
71
- */
72
- @send
73
- external replaceChildren2: (htmlTableSectionElement, string) => unit = "replaceChildren"
74
-
75
- /**
76
- Returns the first element that is a descendant of node that matches selectors.
77
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/querySelector)
78
- */
79
- @send
80
- external querySelector: (htmlTableSectionElement, string) => element = "querySelector"
81
-
82
- /**
83
- Returns all element descendants of node that match selectors.
84
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/querySelectorAll)
85
- */
86
- @send
87
- external querySelectorAll: (htmlTableSectionElement, string) => nodeList = "querySelectorAll"
88
-
89
- /**
90
- Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.
91
-
92
- Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
93
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/before)
94
- */
95
- @send
96
- external before: (htmlTableSectionElement, node) => unit = "before"
97
-
98
- /**
99
- Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.
100
-
101
- Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
102
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/before)
103
- */
104
- @send
105
- external before2: (htmlTableSectionElement, string) => unit = "before"
106
-
107
- /**
108
- Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.
109
-
110
- Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
111
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/after)
112
- */
113
- @send
114
- external after: (htmlTableSectionElement, node) => unit = "after"
115
-
116
- /**
117
- Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.
118
-
119
- Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
120
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/after)
121
- */
122
- @send
123
- external after2: (htmlTableSectionElement, string) => unit = "after"
124
-
125
- /**
126
- Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.
127
-
128
- Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
129
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith)
130
- */
131
- @send
132
- external replaceWith: (htmlTableSectionElement, node) => unit = "replaceWith"
133
-
134
- /**
135
- Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.
136
-
137
- Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
138
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith)
139
- */
140
- @send
141
- external replaceWith2: (htmlTableSectionElement, string) => unit = "replaceWith"
142
-
143
- /**
144
- Removes node.
145
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/remove)
146
- */
147
- @send
148
- external remove: htmlTableSectionElement => unit = "remove"
149
-
150
- /**
151
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/animate)
152
- */
153
- @send
154
- external animate: (htmlTableSectionElement, ~keyframes: any, ~options: float=?) => animation =
155
- "animate"
156
-
157
- /**
158
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/animate)
159
- */
160
- @send
161
- external animate2: (
162
- htmlTableSectionElement,
163
- ~keyframes: any,
164
- ~options: keyframeAnimationOptions=?,
165
- ) => animation = "animate"
166
-
167
- /**
168
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAnimations)
169
- */
170
- @send
171
- external getAnimations: (
172
- htmlTableSectionElement,
173
- ~options: getAnimationsOptions=?,
174
- ) => array<animation> = "getAnimations"
175
-
176
- /**
177
- Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
178
-
179
- The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
180
-
181
- When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
182
-
183
- When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
184
-
185
- When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
186
-
187
- If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
188
-
189
- The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
190
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
191
- */
192
- @send
193
- external addEventListener: (
194
- htmlTableSectionElement,
195
- ~type_: eventType,
196
- ~callback: eventListener<'event>,
197
- ~options: addEventListenerOptions=?,
198
- ) => unit = "addEventListener"
199
-
200
- /**
201
- Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
202
-
203
- The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
204
-
205
- When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
206
-
207
- When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
208
-
209
- When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
210
-
211
- If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
212
-
213
- The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
214
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
215
- */
216
- @send
217
- external addEventListener2: (
218
- htmlTableSectionElement,
219
- ~type_: eventType,
220
- ~callback: eventListener<'event>,
221
- ~options: bool=?,
222
- ) => unit = "addEventListener"
223
-
224
- /**
225
- Removes the event listener in target's event listener list with the same type, callback, and options.
226
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
227
- */
228
- @send
229
- external removeEventListener: (
230
- htmlTableSectionElement,
231
- ~type_: eventType,
232
- ~callback: eventListener<'event>,
233
- ~options: eventListenerOptions=?,
234
- ) => unit = "removeEventListener"
235
-
236
- /**
237
- Removes the event listener in target's event listener list with the same type, callback, and options.
238
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
239
- */
240
- @send
241
- external removeEventListener2: (
242
- htmlTableSectionElement,
243
- ~type_: eventType,
244
- ~callback: eventListener<'event>,
245
- ~options: bool=?,
246
- ) => unit = "removeEventListener"
247
-
248
- /**
249
- Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
250
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
251
- */
252
- @send
253
- external dispatchEvent: (htmlTableSectionElement, event) => bool = "dispatchEvent"
254
-
255
- /**
256
- Returns node's root.
257
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/getRootNode)
258
- */
259
- @send
260
- external getRootNode: (htmlTableSectionElement, ~options: getRootNodeOptions=?) => node =
261
- "getRootNode"
262
-
263
- /**
264
- Returns whether node has children.
265
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/hasChildNodes)
266
- */
267
- @send
268
- external hasChildNodes: htmlTableSectionElement => bool = "hasChildNodes"
269
-
270
- /**
271
- Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.
272
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/normalize)
273
- */
274
- @send
275
- external normalize: htmlTableSectionElement => unit = "normalize"
276
-
277
- /**
278
- Returns a copy of node. If deep is true, the copy also includes the node's descendants.
279
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/cloneNode)
280
- */
281
- @send
282
- external cloneNode: (htmlTableSectionElement, ~deep: bool=?) => node = "cloneNode"
283
-
284
- /**
285
- Returns whether node and otherNode have the same properties.
286
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isEqualNode)
287
- */
288
- @send
289
- external isEqualNode: (htmlTableSectionElement, node) => bool = "isEqualNode"
290
-
291
- /**
292
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isSameNode)
293
- */
294
- @send
295
- external isSameNode: (htmlTableSectionElement, node) => bool = "isSameNode"
296
-
297
- /**
298
- Returns a bitmask indicating the position of other relative to node.
299
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/compareDocumentPosition)
300
- */
301
- @send
302
- external compareDocumentPosition: (htmlTableSectionElement, node) => int = "compareDocumentPosition"
303
-
304
- /**
305
- Returns true if other is an inclusive descendant of node, and false otherwise.
306
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/contains)
307
- */
308
- @send
309
- external contains: (htmlTableSectionElement, node) => bool = "contains"
310
-
311
- /**
312
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lookupPrefix)
313
- */
314
- @send
315
- external lookupPrefix: (htmlTableSectionElement, string) => string = "lookupPrefix"
316
-
317
- /**
318
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/lookupNamespaceURI)
319
- */
320
- @send
321
- external lookupNamespaceURI: (htmlTableSectionElement, string) => string = "lookupNamespaceURI"
322
-
323
- /**
324
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/isDefaultNamespace)
325
- */
326
- @send
327
- external isDefaultNamespace: (htmlTableSectionElement, string) => bool = "isDefaultNamespace"
328
-
329
- /**
330
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/insertBefore)
331
- */
332
- @send
333
- external insertBefore: (htmlTableSectionElement, 't, ~child: node) => 't = "insertBefore"
334
-
335
- /**
336
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/appendChild)
337
- */
338
- @send
339
- external appendChild: (htmlTableSectionElement, 't) => 't = "appendChild"
340
-
341
- /**
342
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/replaceChild)
343
- */
344
- @send
345
- external replaceChild: (htmlTableSectionElement, ~node: node, 't) => 't = "replaceChild"
346
-
347
- /**
348
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/removeChild)
349
- */
350
- @send
351
- external removeChild: (htmlTableSectionElement, 't) => 't = "removeChild"
352
-
353
- /**
354
- Returns true if element has attributes, and false otherwise.
355
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasAttributes)
356
- */
357
- @send
358
- external hasAttributes: htmlTableSectionElement => bool = "hasAttributes"
359
-
360
- /**
361
- Returns the qualified names of all element's attributes. Can contain duplicates.
362
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNames)
363
- */
364
- @send
365
- external getAttributeNames: htmlTableSectionElement => array<string> = "getAttributeNames"
366
-
367
- /**
368
- Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.
369
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttribute)
370
- */
371
- @send
372
- external getAttribute: (htmlTableSectionElement, string) => string = "getAttribute"
373
-
374
- /**
375
- Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.
376
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNS)
377
- */
378
- @send
379
- external getAttributeNS: (
380
- htmlTableSectionElement,
381
- ~namespace: string,
382
- ~localName: string,
383
- ) => string = "getAttributeNS"
384
-
385
- /**
386
- Sets the value of element's first attribute whose qualified name is qualifiedName to value.
387
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttribute)
388
- */
389
- @send
390
- external setAttribute: (htmlTableSectionElement, ~qualifiedName: string, ~value: string) => unit =
391
- "setAttribute"
392
-
393
- /**
394
- Sets the value of element's attribute whose namespace is namespace and local name is localName to value.
395
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNS)
396
- */
397
- @send
398
- external setAttributeNS: (
399
- htmlTableSectionElement,
400
- ~namespace: string,
401
- ~qualifiedName: string,
402
- ~value: string,
403
- ) => unit = "setAttributeNS"
404
-
405
- /**
406
- Removes element's first attribute whose qualified name is qualifiedName.
407
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/removeAttribute)
408
- */
409
- @send
410
- external removeAttribute: (htmlTableSectionElement, string) => unit = "removeAttribute"
411
-
412
- /**
413
- Removes element's attribute whose namespace is namespace and local name is localName.
414
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNS)
415
- */
416
- @send
417
- external removeAttributeNS: (
418
- htmlTableSectionElement,
419
- ~namespace: string,
420
- ~localName: string,
421
- ) => unit = "removeAttributeNS"
422
-
423
- /**
424
- If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.
425
-
426
- Returns true if qualifiedName is now present, and false otherwise.
427
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute)
428
- */
429
- @send
430
- external toggleAttribute: (
431
- htmlTableSectionElement,
432
- ~qualifiedName: string,
433
- ~force: bool=?,
434
- ) => bool = "toggleAttribute"
435
-
436
- /**
437
- Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.
438
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasAttribute)
439
- */
440
- @send
441
- external hasAttribute: (htmlTableSectionElement, string) => bool = "hasAttribute"
442
-
443
- /**
444
- Returns true if element has an attribute whose namespace is namespace and local name is localName.
445
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasAttributeNS)
446
- */
447
- @send
448
- external hasAttributeNS: (htmlTableSectionElement, ~namespace: string, ~localName: string) => bool =
449
- "hasAttributeNS"
450
-
451
- /**
452
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNode)
453
- */
454
- @send
455
- external getAttributeNode: (htmlTableSectionElement, string) => attr = "getAttributeNode"
456
-
457
- /**
458
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNodeNS)
459
- */
460
- @send
461
- external getAttributeNodeNS: (
462
- htmlTableSectionElement,
463
- ~namespace: string,
464
- ~localName: string,
465
- ) => attr = "getAttributeNodeNS"
466
-
467
- /**
468
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNode)
469
- */
470
- @send
471
- external setAttributeNode: (htmlTableSectionElement, attr) => attr = "setAttributeNode"
472
-
473
- /**
474
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS)
475
- */
476
- @send
477
- external setAttributeNodeNS: (htmlTableSectionElement, attr) => attr = "setAttributeNodeNS"
478
-
479
- /**
480
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNode)
481
- */
482
- @send
483
- external removeAttributeNode: (htmlTableSectionElement, attr) => attr = "removeAttributeNode"
484
-
485
- /**
486
- Creates a shadow root for element and returns it.
487
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/attachShadow)
488
- */
489
- @send
490
- external attachShadow: (htmlTableSectionElement, shadowRootInit) => shadowRoot = "attachShadow"
491
-
492
- /**
493
- Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.
494
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/closest)
495
- */
496
- @send
497
- external closest: (htmlTableSectionElement, string) => 'e = "closest"
498
-
499
- /**
500
- Returns true if matching selectors against element's root yields element, and false otherwise.
501
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/matches)
502
- */
503
- @send
504
- external matches: (htmlTableSectionElement, string) => bool = "matches"
505
-
506
- /**
507
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName)
508
- */
509
- @send
510
- external getElementsByTagName: (htmlTableSectionElement, string) => htmlCollection =
511
- "getElementsByTagName"
512
-
513
- /**
514
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagNameNS)
515
- */
516
- @send
517
- external getElementsByTagNameNS: (
518
- htmlTableSectionElement,
519
- ~namespace: string,
520
- ~localName: string,
521
- ) => htmlCollectionOf<element> = "getElementsByTagNameNS"
522
-
523
- /**
524
- Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
525
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getElementsByClassName)
526
- */
527
- @send
528
- external getElementsByClassName: (htmlTableSectionElement, string) => htmlCollectionOf<element> =
529
- "getElementsByClassName"
530
-
531
- /**
532
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement)
533
- */
534
- @send
535
- external insertAdjacentElement: (
536
- htmlTableSectionElement,
537
- ~where: insertPosition,
538
- ~element: element,
539
- ) => element = "insertAdjacentElement"
540
-
541
- /**
542
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText)
543
- */
544
- @send
545
- external insertAdjacentText: (
546
- htmlTableSectionElement,
547
- ~where: insertPosition,
548
- ~data: string,
549
- ) => unit = "insertAdjacentText"
550
-
551
- /**
552
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/computedStyleMap)
553
- */
554
- @send
555
- external computedStyleMap: htmlTableSectionElement => stylePropertyMapReadOnly = "computedStyleMap"
556
-
557
- /**
558
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getClientRects)
559
- */
560
- @send
561
- external getClientRects: htmlTableSectionElement => domRectList = "getClientRects"
562
-
563
- /**
564
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getBoundingClientRect)
565
- */
566
- @send
567
- external getBoundingClientRect: htmlTableSectionElement => domRect = "getBoundingClientRect"
568
-
569
- /**
570
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/checkVisibility)
571
- */
572
- @send
573
- external checkVisibility: (htmlTableSectionElement, ~options: checkVisibilityOptions=?) => bool =
574
- "checkVisibility"
575
-
576
- /**
577
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView)
578
- */
579
- @send
580
- external scrollIntoView: (htmlTableSectionElement, ~arg: bool=?) => unit = "scrollIntoView"
581
-
582
- /**
583
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView)
584
- */
585
- @send
586
- external scrollIntoView2: (htmlTableSectionElement, ~arg: scrollIntoViewOptions=?) => unit =
587
- "scrollIntoView"
588
-
589
- /**
590
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scroll)
591
- */
592
- @send
593
- external scroll: (htmlTableSectionElement, ~options: scrollToOptions=?) => unit = "scroll"
594
-
595
- /**
596
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scroll)
597
- */
598
- @send
599
- external scroll2: (htmlTableSectionElement, ~x: float, ~y: float) => unit = "scroll"
600
-
601
- /**
602
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollTo)
603
- */
604
- @send
605
- external scrollTo: (htmlTableSectionElement, ~options: scrollToOptions=?) => unit = "scrollTo"
606
-
607
- /**
608
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollTo)
609
- */
610
- @send
611
- external scrollTo2: (htmlTableSectionElement, ~x: float, ~y: float) => unit = "scrollTo"
612
-
613
- /**
614
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollBy)
615
- */
616
- @send
617
- external scrollBy: (htmlTableSectionElement, ~options: scrollToOptions=?) => unit = "scrollBy"
618
-
619
- /**
620
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollBy)
621
- */
622
- @send
623
- external scrollBy2: (htmlTableSectionElement, ~x: float, ~y: float) => unit = "scrollBy"
624
-
625
- /**
626
- Displays element fullscreen and resolves promise when done.
627
-
628
- When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference.
629
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/requestFullscreen)
630
- */
631
- @send
632
- external requestFullscreen: (
633
- htmlTableSectionElement,
634
- ~options: fullscreenOptions=?,
635
- ) => Promise.t<unit> = "requestFullscreen"
636
-
637
- /**
638
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe)
639
- */
640
- @send
641
- external setHTMLUnsafe: (htmlTableSectionElement, string) => unit = "setHTMLUnsafe"
642
-
643
- /**
644
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getHTML)
645
- */
646
- @send
647
- external getHTML: (htmlTableSectionElement, ~options: getHTMLOptions=?) => string = "getHTML"
648
-
649
- /**
650
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML)
651
- */
652
- @send
653
- external insertAdjacentHTML: (
654
- htmlTableSectionElement,
655
- ~position: insertPosition,
656
- ~string: string,
657
- ) => unit = "insertAdjacentHTML"
658
-
659
- /**
660
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture)
661
- */
662
- @send
663
- external setPointerCapture: (htmlTableSectionElement, int) => unit = "setPointerCapture"
664
-
665
- /**
666
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture)
667
- */
668
- @send
669
- external releasePointerCapture: (htmlTableSectionElement, int) => unit = "releasePointerCapture"
670
-
671
- /**
672
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasPointerCapture)
673
- */
674
- @send
675
- external hasPointerCapture: (htmlTableSectionElement, int) => bool = "hasPointerCapture"
676
-
677
- /**
678
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock)
679
- */
680
- @send
681
- external requestPointerLock: (
682
- htmlTableSectionElement,
683
- ~options: pointerLockOptions=?,
684
- ) => Promise.t<unit> = "requestPointerLock"
685
-
686
- /**
687
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/click)
688
- */
689
- @send
690
- external click: htmlTableSectionElement => unit = "click"
691
-
692
- /**
693
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/attachInternals)
694
- */
695
- @send
696
- external attachInternals: htmlTableSectionElement => elementInternals = "attachInternals"
697
-
698
- /**
699
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/showPopover)
700
- */
701
- @send
702
- external showPopover: htmlTableSectionElement => unit = "showPopover"
703
-
704
- /**
705
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidePopover)
706
- */
707
- @send
708
- external hidePopover: htmlTableSectionElement => unit = "hidePopover"
709
-
710
- /**
711
- [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/togglePopover)
712
- */
713
- @send
714
- external togglePopover: (htmlTableSectionElement, ~force: bool=?) => bool = "togglePopover"
3
+ include HTMLElement.Impl({
4
+ type t = htmlTableSectionElement
5
+ })
715
6
 
716
7
  /**
717
8
  Creates a new row (tr) in the table, and adds the row to the rows collection.