@rescript/webapi 0.1.0-experimental-2d6efc2 → 0.1.0-experimental-0781ac8
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.
- package/README.md +10 -5
- package/package.json +6 -4
- package/rescript.json +591 -4
- package/src/Base/ArrayBufferTypedArrayOrDataView.res +4 -0
- package/src/Base/BaseCSSFontLoading.res +25 -0
- package/src/{EncryptedMediaExtensionsAPI.res → Base/BaseEncryptedMediaExtensions.res} +12 -18
- package/src/Base/BaseEvent.res +6 -0
- package/src/Base/BaseFile.res +37 -0
- package/src/{FileAndDirectoryEntriesAPI.res → Base/BaseFileAndDirectoryEntries.res} +5 -22
- package/src/{DOMAPI.res → Base/DOM.res} +225 -2237
- package/src/{CSSFontLoadingAPI.res → CSSFontLoading/CssFontLoadingTypes.res} +4 -15
- package/src/CSSFontLoading/FontFace.res +62 -0
- package/src/CSSFontLoading/FontFaceSet.res +38 -0
- package/src/Canvas/Canvas.res +179 -0
- package/src/{CanvasAPI → Canvas}/CanvasGradient.res +2 -3
- package/src/{CanvasAPI → Canvas}/CanvasPattern.res +3 -3
- package/src/{DOMAPI → Canvas}/CanvasRenderingContext2D.res +178 -140
- package/src/{CanvasAPI.res → Canvas/CanvasTypes.res} +9 -11
- package/src/Canvas/FillStyle.res +25 -0
- package/src/{DOMAPI → Canvas}/HTMLCanvasElement.res +21 -23
- package/src/{CanvasAPI → Canvas}/ImageBitmap.res +1 -3
- package/src/{CanvasAPI → Canvas}/ImageBitmapRenderingContext.res +4 -4
- package/src/{CanvasAPI → Canvas}/OffscreenCanvas.res +19 -19
- package/src/{CanvasAPI → Canvas}/Path2D.res +63 -19
- package/src/Canvas/VideoFrame.res +223 -0
- package/src/{ChannelMessagingAPI.res → ChannelMessaging/ChannelMessagingTypes.res} +2 -4
- package/src/{ChannelMessagingAPI → ChannelMessaging}/MessagePort.res +8 -10
- package/src/Clipboard/Clipboard.res +29 -0
- package/src/{ClipboardAPI → Clipboard}/ClipboardItem.res +5 -6
- package/src/{ClipboardAPI.res → Clipboard/ClipboardTypes.res} +5 -7
- package/src/{CredentialManagementAPI.res → CredentialManagement/CredentialManagementTypes.res} +10 -13
- package/src/CredentialManagement/CredentialsContainer.res +33 -0
- package/src/{DOMAPI → DOM}/Animation.res +13 -13
- package/src/{DOMAPI → DOM}/AnimationEffect.res +7 -5
- package/src/{DOMAPI → DOM}/CSSRuleList.res +1 -3
- package/src/{DOMAPI → DOM}/CSSStyleDeclaration.res +6 -7
- package/src/DOM/CSSStyleSheet.res +30 -0
- package/src/{DOMAPI → DOM}/CSSStyleValue.res +3 -4
- package/src/DOM/CaretPosition.res +2 -0
- package/src/{DOMAPI → DOM}/CharacterData.res +5 -7
- package/src/DOM/Comment.res +7 -0
- package/src/{DOMAPI → DOM}/CustomElementRegistry.res +10 -9
- package/src/DOM/DOMException.res +7 -0
- package/src/{DOMAPI → DOM}/DOMImplementation.res +6 -8
- package/src/DOM/DOMMatrix.res +228 -0
- package/src/DOM/DOMMatrixReadOnly.res +147 -0
- package/src/DOM/DOMPoint.res +31 -0
- package/src/{DOMAPI → DOM}/DOMPointReadOnly.res +7 -7
- package/src/{DOMAPI → DOM}/DOMRect.res +6 -7
- package/src/DOM/DOMRectList.res +2 -0
- package/src/DOM/DOMRectReadOnly.res +19 -0
- package/src/{Prelude → DOM}/DOMStringList.res +3 -3
- package/src/{DOMAPI → DOM}/DOMTokenList.res +7 -9
- package/src/{DOMAPI → DOM}/Document.res +94 -80
- package/src/{DOMAPI → DOM}/DocumentFragment.res +10 -11
- package/src/DOM/DocumentTimeline.res +8 -0
- package/src/{Global.res → DOM/DomGlobal.res} +62 -285
- package/src/{DOMAPI/HTMLMediaElement.res → DOM/DomHTMLMediaElement.res} +6 -16
- package/src/DOM/DomTypes.res +2105 -0
- package/src/{DOMAPI → DOM}/Element.res +53 -44
- package/src/{DOMAPI → DOM}/ElementInternals.res +6 -8
- package/src/{DOMAPI → DOM}/FileList.res +2 -5
- package/src/DOM/HTMLAnchorElement.res +1 -0
- package/src/DOM/HTMLAreaElement.res +1 -0
- package/src/DOM/HTMLAudioElement.res +1 -0
- package/src/DOM/HTMLBRElement.res +1 -0
- package/src/DOM/HTMLBaseElement.res +1 -0
- package/src/DOM/HTMLBodyElement.res +1 -0
- package/src/{DOMAPI → DOM}/HTMLButtonElement.res +4 -6
- package/src/{DOMAPI → DOM}/HTMLCollection.res +2 -4
- package/src/DOM/HTMLDListElement.res +1 -0
- package/src/DOM/HTMLDataElement.res +1 -0
- package/src/DOM/HTMLDataListElement.res +1 -0
- package/src/{DOMAPI → DOM}/HTMLDialogElement.res +4 -6
- package/src/DOM/HTMLDivElement.res +1 -0
- package/src/{DOMAPI → DOM}/HTMLElement.res +5 -5
- package/src/DOM/HTMLEmbedElement.res +4 -0
- package/src/{DOMAPI → DOM}/HTMLFieldSetElement.res +4 -6
- package/src/DOM/HTMLFormControlsCollection.res +16 -0
- package/src/{DOMAPI → DOM}/HTMLFormElement.res +7 -7
- package/src/DOM/HTMLFrameSetElement.res +1 -0
- package/src/DOM/HTMLHRElement.res +1 -0
- package/src/DOM/HTMLHeadElement.res +1 -0
- package/src/DOM/HTMLHeadingElement.res +1 -0
- package/src/DOM/HTMLHtmlElement.res +1 -0
- package/src/DOM/HTMLIFrameElement.res +4 -0
- package/src/DOM/HTMLImageElement.res +7 -0
- package/src/{DOMAPI → DOM}/HTMLInputElement.res +12 -14
- package/src/DOM/HTMLLIElement.res +1 -0
- package/src/DOM/HTMLLabelElement.res +1 -0
- package/src/DOM/HTMLLegendElement.res +1 -0
- package/src/DOM/HTMLLinkElement.res +1 -0
- package/src/DOM/HTMLMapElement.res +1 -0
- package/src/DOM/HTMLMenuElement.res +1 -0
- package/src/DOM/HTMLMetaElement.res +1 -0
- package/src/DOM/HTMLMeterElement.res +1 -0
- package/src/DOM/HTMLModElement.res +1 -0
- package/src/DOM/HTMLOListElement.res +1 -0
- package/src/{DOMAPI → DOM}/HTMLObjectElement.res +5 -7
- package/src/DOM/HTMLOptGroupElement.res +1 -0
- package/src/DOM/HTMLOptionElement.res +1 -0
- package/src/{DOMAPI → DOM}/HTMLOptionsCollection.res +4 -5
- package/src/{DOMAPI → DOM}/HTMLOutputElement.res +4 -6
- package/src/DOM/HTMLParagraphElement.res +1 -0
- package/src/DOM/HTMLPictureElement.res +1 -0
- package/src/DOM/HTMLPreElement.res +1 -0
- package/src/DOM/HTMLProgressElement.res +1 -0
- package/src/DOM/HTMLQuoteElement.res +1 -0
- package/src/{DOMAPI → DOM}/HTMLScriptElement.res +1 -3
- package/src/{DOMAPI → DOM}/HTMLSelectElement.res +10 -12
- package/src/DOM/HTMLSlotElement.res +31 -0
- package/src/DOM/HTMLSourceElement.res +1 -0
- package/src/DOM/HTMLSpanElement.res +1 -0
- package/src/DOM/HTMLStyleElement.res +1 -0
- package/src/DOM/HTMLTableCaptionElement.res +1 -0
- package/src/DOM/HTMLTableCellElement.res +1 -0
- package/src/{DOMAPI → DOM}/HTMLTableElement.res +12 -12
- package/src/{DOMAPI → DOM}/HTMLTableRowElement.res +6 -5
- package/src/{DOMAPI → DOM}/HTMLTableSectionElement.res +6 -5
- package/src/DOM/HTMLTemplateElement.res +1 -0
- package/src/{DOMAPI → DOM}/HTMLTextAreaElement.res +9 -11
- package/src/DOM/HTMLTimeElement.res +1 -0
- package/src/DOM/HTMLTitleElement.res +1 -0
- package/src/DOM/HTMLTrackElement.res +1 -0
- package/src/DOM/HTMLUListElement.res +1 -0
- package/src/DOM/HTMLVideoElement.res +32 -0
- package/src/{DOMAPI → DOM}/IdleDeadline.res +1 -3
- package/src/{DOMAPI → DOM}/ImageData.res +4 -5
- package/src/{DOMAPI → DOM}/Location.res +3 -5
- package/src/{DOMAPI → DOM}/MediaList.res +3 -5
- package/src/DOM/MediaQueryList.res +1 -0
- package/src/{DOMAPI → DOM}/NamedNodeMap.res +15 -11
- package/src/DOM/Navigator.res +166 -0
- package/src/{DOMAPI → DOM}/Node.res +10 -11
- package/src/DOM/NodeFilter.res +2 -0
- package/src/{DOMAPI → DOM}/NodeIterator.res +2 -4
- package/src/{DOMAPI → DOM}/NodeList.res +1 -3
- package/src/{DOMAPI → DOM}/Range.res +27 -27
- package/src/DOM/SVGGraphicsElement.res +18 -0
- package/src/{DOMAPI → DOM}/SVGLength.res +2 -4
- package/src/DOM/ScreenOrientation.res +7 -0
- package/src/{DOMAPI → DOM}/Selection.res +22 -20
- package/src/DOM/ShadowRoot.res +19 -0
- package/src/DOM/StylePropertyMap.res +57 -0
- package/src/{DOMAPI → DOM}/StylePropertyMapReadOnly.res +3 -4
- package/src/{DOMAPI → DOM}/StyleSheetList.res +1 -3
- package/src/{DOMAPI → DOM}/Text.res +3 -5
- package/src/DOM/TextTrackList.res +7 -0
- package/src/{DOMAPI → DOM}/TimeRanges.res +2 -4
- package/src/{DOMAPI → DOM}/TreeWalker.res +7 -9
- package/src/{DOMAPI → DOM}/VideoColorSpace.res +3 -4
- package/src/DOM/Window.res +557 -0
- package/src/{DOMAPI → DOM}/XPathExpression.res +4 -6
- package/src/{DOMAPI → DOM}/XPathResult.res +2 -4
- package/src/EncryptedMediaExtensions/EncryptedMediaExtensionsHTMLMediaElement.res +15 -0
- package/src/EncryptedMediaExtensions/EncryptedMediaExtensionsTypes.res +43 -0
- package/src/{EncryptedMediaExtensionsAPI → EncryptedMediaExtensions}/MediaKeySession.res +10 -10
- package/src/{EncryptedMediaExtensionsAPI → EncryptedMediaExtensions}/MediaKeyStatusMap.res +2 -4
- package/src/EncryptedMediaExtensions/MediaKeySystemAccess.res +14 -0
- package/src/EncryptedMediaExtensions/MediaKeys.res +35 -0
- package/src/{EventAPI → Event}/AbortController.res +2 -4
- package/src/{EventAPI → Event}/AbortSignal.res +5 -7
- package/src/{EventAPI → Event}/Event.res +5 -6
- package/src/{EventAPI → Event}/EventTarget.res +14 -16
- package/src/{EventAPI.res → Event/EventTypes.res} +10 -10
- package/src/{EventAPI → Event}/ExtendableEvent.res +2 -4
- package/src/{FetchAPI → Fetch}/BodyInit.res +10 -12
- package/src/Fetch/Fetch.res +12 -0
- package/src/{FetchAPI.res → Fetch/FetchTypes.res} +19 -21
- package/src/{FetchAPI → Fetch}/FormData.res +16 -15
- package/src/Fetch/FormDataEntryValue.res +2 -0
- package/src/{FetchAPI → Fetch}/Headers.res +10 -12
- package/src/{FetchAPI → Fetch}/HeadersInit.res +4 -4
- package/src/{FetchAPI → Fetch}/Request.res +16 -11
- package/src/{FetchAPI → Fetch}/Response.res +27 -23
- package/src/{FileAPI → File}/Blob.res +9 -7
- package/src/{FileAPI → File}/File.res +5 -5
- package/src/File/FileSystemDirectoryHandle.res +49 -0
- package/src/File/FileSystemFileHandle.res +25 -0
- package/src/File/FileSystemHandle.res +6 -0
- package/src/File/FileSystemWritableFileStream.res +65 -0
- package/src/{FileAPI.res → File/FileTypes.res} +22 -23
- package/src/File/ReadableStream.res +79 -0
- package/src/File/WritableStream.res +27 -0
- package/src/{FileAPI → File}/WritableStreamDefaultController.res +1 -3
- package/src/FileAndDirectoryEntries/FileAndDirectoryEntriesTypes.res +35 -0
- package/src/FileAndDirectoryEntries/FileSystemDirectoryEntry.res +42 -0
- package/src/FileAndDirectoryEntries/FileSystemDirectoryReader.res +9 -0
- package/src/FileAndDirectoryEntries/FileSystemEntry.res +9 -0
- package/src/Gamepad/GamepadHapticActuator.res +16 -0
- package/src/{GamepadAPI.res → Gamepad/GamepadTypes.res} +4 -4
- package/src/Geolocation/Geolocation.res +31 -0
- package/src/{GeolocationAPI → Geolocation}/GeolocationCoordinates.res +1 -3
- package/src/{GeolocationAPI → Geolocation}/GeolocationPosition.res +1 -3
- package/src/{GeolocationAPI.res → Geolocation/GeolocationTypes.res} +5 -5
- package/src/{HistoryAPI → History}/History.res +13 -8
- package/src/{HistoryAPI.res → History/HistoryTypes.res} +3 -2
- package/src/{IndexedDBAPI → IndexedDB}/IDBDatabase.res +14 -16
- package/src/{IndexedDBAPI → IndexedDB}/IDBFactory.res +10 -6
- package/src/{IndexedDBAPI → IndexedDB}/IDBIndex.res +22 -17
- package/src/{IndexedDBAPI → IndexedDB}/IDBObjectStore.res +44 -33
- package/src/{IndexedDBAPI → IndexedDB}/IDBTransaction.res +5 -6
- package/src/{IndexedDBAPI.res → IndexedDB/IndexedDbTypes.res} +16 -17
- package/src/IntersectionObserver/IntersectionObserver.res +39 -0
- package/src/IntersectionObserver/IntersectionObserverRoot.res +21 -0
- package/src/{IntersectionObserverAPI.res → IntersectionObserver/IntersectionObserverTypes.res} +7 -9
- package/src/MediaCapabilities/MediaCapabilities.res +19 -0
- package/src/{MediaCapabilitiesAPI.res → MediaCapabilities/MediaCapabilitiesTypes.res} +3 -3
- package/src/{MediaCaptureAndStreamsAPI.res → MediaCaptureAndStreams/MediaCaptureAndStreamsTypes.res} +7 -8
- package/src/MediaCaptureAndStreams/MediaDeviceInfo.res +9 -0
- package/src/MediaCaptureAndStreams/MediaDevices.res +40 -0
- package/src/MediaCaptureAndStreams/MediaStream.res +89 -0
- package/src/MediaCaptureAndStreams/MediaStreamTrack.res +51 -0
- package/src/MediaSession/MediaMetadata.res +10 -0
- package/src/MediaSession/MediaSession.res +25 -0
- package/src/{MediaSessionAPI.res → MediaSession/MediaSessionTypes.res} +4 -2
- package/src/MutationObserver/MutationObserver.res +31 -0
- package/src/{MutationObserverAPI.res → MutationObserver/MutationObserverTypes.res} +3 -5
- package/src/Notification/Notification.res +46 -0
- package/src/{NotificationAPI.res → Notification/NotificationTypes.res} +5 -7
- package/src/Performance/Performance.res +101 -0
- package/src/{PerformanceAPI → Performance}/PerformanceEntry.res +1 -3
- package/src/Performance/PerformanceMark.res +16 -0
- package/src/{PerformanceAPI.res → Performance/PerformanceTypes.res} +9 -12
- package/src/Permissions/Permissions.res +10 -0
- package/src/{PermissionsAPI.res → Permissions/PermissionsTypes.res} +4 -6
- package/src/PictureInPicture/PictureInPicture.res +7 -0
- package/src/{PictureInPictureAPI.res → PictureInPicture/PictureInPictureTypes.res} +1 -3
- package/src/Push/ApplicationServerKey.res +2 -0
- package/src/Push/PushEvent.res +3 -0
- package/src/Push/PushManager.res +24 -0
- package/src/{PushAPI → Push}/PushMessageData.res +3 -3
- package/src/{PushAPI → Push}/PushSubscription.res +4 -5
- package/src/{PushAPI.res → Push/PushTypes.res} +6 -8
- package/src/RemotePlayback/RemotePlayback.res +25 -0
- package/src/{RemotePlaybackAPI.res → RemotePlayback/RemotePlaybackTypes.res} +4 -6
- package/src/ResizeObserver/ResizeObserver.res +30 -0
- package/src/{ResizeObserverAPI.res → ResizeObserver/ResizeObserverTypes.res} +5 -7
- package/src/{ScreenWakeLockAPI.res → ScreenWakeLock/ScreenWakeLockTypes.res} +3 -5
- package/src/ScreenWakeLock/WakeLock.res +8 -0
- package/src/ScreenWakeLock/WakeLockSentinel.res +7 -0
- package/src/ServiceWorker/Cache.res +117 -0
- package/src/{ServiceWorkerAPI → ServiceWorker}/Clients.res +14 -7
- package/src/{ServiceWorkerAPI → ServiceWorker}/NavigationPreloadManager.res +7 -6
- package/src/ServiceWorker/ServiceWorker.res +38 -0
- package/src/ServiceWorker/ServiceWorkerContainer.res +34 -0
- package/src/{ServiceWorkerAPI → ServiceWorker}/ServiceWorkerRegistration.res +8 -11
- package/src/ServiceWorker/ServiceWorkerScope.res +12 -0
- package/src/{ServiceWorkerAPI.res → ServiceWorker/ServiceWorkerTypes.res} +18 -23
- package/src/{StorageAPI → Storage}/StorageManager.res +5 -7
- package/src/{StorageAPI.res → Storage/StorageTypes.res} +1 -1
- package/src/UIEvents/CompositionEvent.res +10 -0
- package/src/{UIEventsAPI → UIEvents}/DataTransfer.res +10 -8
- package/src/{UIEventsAPI → UIEvents}/DataTransferItem.res +5 -8
- package/src/{UIEventsAPI → UIEvents}/DataTransferItemList.res +11 -7
- package/src/UIEvents/FocusEvent.res +10 -0
- package/src/UIEvents/InputEvent.res +16 -0
- package/src/UIEvents/KeyboardEvent.res +16 -0
- package/src/{UIEventsAPI → UIEvents}/MouseEvent.res +6 -5
- package/src/UIEvents/PointerEvent.res +24 -0
- package/src/{UIEventsAPI → UIEvents}/Touch.res +1 -3
- package/src/UIEvents/TouchEvent.res +10 -0
- package/src/{UIEventsAPI → UIEvents}/TouchList.res +1 -3
- package/src/UIEvents/UIEvent.res +20 -0
- package/src/{UIEventsAPI.res → UIEvents/UiEventsTypes.res} +28 -30
- package/src/UIEvents/WheelEvent.res +10 -0
- package/src/{URLAPI → URL}/URL.res +6 -5
- package/src/{URLAPI → URL}/URLSearchParams.res +20 -17
- package/src/{URLAPI.res → URL/UrlTypes.res} +5 -4
- package/src/{ViewTransitionsAPI → ViewTransitions}/ViewTransition.res +1 -3
- package/src/{ViewTransitionsAPI.res → ViewTransitions/ViewTransitionsTypes.res} +1 -1
- package/src/VisualViewport/VisualViewport.res +5 -0
- package/src/{VisualViewportAPI.res → VisualViewport/VisualViewportTypes.res} +2 -4
- package/src/WebAudio/AnalyserNode.res +38 -0
- package/src/{WebAudioAPI → WebAudio}/AudioBuffer.res +4 -6
- package/src/{WebAudioAPI → WebAudio}/AudioBufferSourceNode.res +5 -7
- package/src/WebAudio/AudioContext.res +59 -0
- package/src/WebAudio/AudioDestinationNode.res +1 -0
- package/src/{WebAudioAPI → WebAudio}/AudioNode.res +21 -12
- package/src/{WebAudioAPI → WebAudio}/AudioParam.res +23 -14
- package/src/WebAudio/AudioProcessingEvent.res +10 -0
- package/src/{WebAudioAPI → WebAudio}/AudioScheduledSourceNode.res +2 -4
- package/src/WebAudio/AudioWorkletNode.res +11 -0
- package/src/{WebAudioAPI → WebAudio}/BaseAudioContext.res +26 -25
- package/src/{WebAudioAPI → WebAudio}/BiquadFilterNode.res +6 -6
- package/src/WebAudio/ChannelMergerNode.res +10 -0
- package/src/WebAudio/ChannelSplitterNode.res +10 -0
- package/src/WebAudio/ConstantSourceNode.res +10 -0
- package/src/WebAudio/ConvolverNode.res +10 -0
- package/src/WebAudio/DelayNode.res +10 -0
- package/src/WebAudio/DynamicsCompressorNode.res +10 -0
- package/src/WebAudio/GainNode.res +10 -0
- package/src/{WebAudioAPI → WebAudio}/IIRFilterNode.res +6 -6
- package/src/WebAudio/MediaElementAudioSourceNode.res +10 -0
- package/src/WebAudio/MediaStreamAudioDestinationNode.res +10 -0
- package/src/WebAudio/MediaStreamAudioSourceNode.res +10 -0
- package/src/WebAudio/OfflineAudioCompletionEvent.res +10 -0
- package/src/WebAudio/OfflineAudioContext.res +58 -0
- package/src/WebAudio/OscillatorNode.res +17 -0
- package/src/WebAudio/PannerNode.res +10 -0
- package/src/WebAudio/PeriodicWave.res +8 -0
- package/src/WebAudio/StereoPannerNode.res +10 -0
- package/src/WebAudio/WaveShaperNode.res +10 -0
- package/src/{WebAudioAPI.res → WebAudio/WebAudioTypes.res} +55 -42
- package/src/{WebAudioAPI → WebAudio}/Worklet.res +5 -4
- package/src/{WebCryptoAPI → WebCrypto}/Crypto.res +2 -4
- package/src/WebCrypto/SubtleCrypto.res +173 -0
- package/src/{WebCryptoAPI.res → WebCrypto/WebCryptoTypes.res} +3 -5
- package/src/WebLocks/LockManager.res +26 -0
- package/src/{WebLocksAPI.res → WebLocks/WebLocksTypes.res} +2 -4
- package/src/WebMIDI/WebMIDI.res +7 -0
- package/src/{WebMIDIAPI.res → WebMIDI/WebMidiTypes.res} +1 -3
- package/src/WebSockets/CloseEvent.res +10 -0
- package/src/{WebSocketsAPI → WebSockets}/MessageEvent.res +14 -9
- package/src/WebSockets/WebSocket.res +71 -0
- package/src/{WebSocketsAPI.res → WebSockets/WebSocketsTypes.res} +12 -15
- package/src/{WebSpeechAPI → WebSpeech}/SpeechSynthesis.res +8 -8
- package/src/WebSpeech/SpeechSynthesisUtterance.res +8 -0
- package/src/{WebSpeechAPI.res → WebSpeech/WebSpeechTypes.res} +4 -5
- package/src/{WebStorageAPI → WebStorage}/Storage.res +8 -10
- package/src/WebStorage/StorageEvent.res +10 -0
- package/src/{WebStorageAPI.res → WebStorage/WebStorageTypes.res} +9 -11
- package/src/{WebVTTAPI → WebVTT}/TextTrack.res +3 -5
- package/src/{WebVTTAPI → WebVTT}/TextTrackCueList.res +2 -3
- package/src/{WebVTTAPI.res → WebVTT/WebVttTypes.res} +5 -5
- package/src/WebWorkers/CacheStorage.res +43 -0
- package/src/{WebWorkersAPI → WebWorkers}/SharedWorker.res +13 -12
- package/src/{WebWorkersAPI/SharedWorkerGlobalScope.res → WebWorkers/SharedWorkerScope.res} +6 -4
- package/src/{WebWorkersAPI.res → WebWorkers/WebWorkersTypes.res} +7 -10
- package/src/{WebWorkersAPI/WorkerGlobalScope.res → WebWorkers/Worker.res} +8 -8
- package/src/CSSFontLoadingAPI/FontFace.res +0 -34
- package/src/CSSFontLoadingAPI/FontFaceSet.res +0 -33
- package/src/CanvasAPI/FillStyle.res +0 -24
- package/src/ClipboardAPI/Clipboard.res +0 -27
- package/src/CredentialManagementAPI/CredentialsContainer.res +0 -29
- package/src/DOMAPI/CSSStyleSheet.res +0 -32
- package/src/DOMAPI/CaretPosition.res +0 -4
- package/src/DOMAPI/Comment.res +0 -9
- package/src/DOMAPI/DOMMatrix.res +0 -169
- package/src/DOMAPI/DOMMatrixReadOnly.res +0 -103
- package/src/DOMAPI/DOMPoint.res +0 -29
- package/src/DOMAPI/DOMRectList.res +0 -4
- package/src/DOMAPI/DOMRectReadOnly.res +0 -17
- package/src/DOMAPI/DocumentTimeline.res +0 -9
- package/src/DOMAPI/HTMLAnchorElement.res +0 -3
- package/src/DOMAPI/HTMLAreaElement.res +0 -3
- package/src/DOMAPI/HTMLAudioElement.res +0 -3
- package/src/DOMAPI/HTMLBRElement.res +0 -3
- package/src/DOMAPI/HTMLBaseElement.res +0 -3
- package/src/DOMAPI/HTMLBodyElement.res +0 -3
- package/src/DOMAPI/HTMLDListElement.res +0 -3
- package/src/DOMAPI/HTMLDataElement.res +0 -3
- package/src/DOMAPI/HTMLDataListElement.res +0 -3
- package/src/DOMAPI/HTMLDivElement.res +0 -3
- package/src/DOMAPI/HTMLEmbedElement.res +0 -6
- package/src/DOMAPI/HTMLFormControlsCollection.res +0 -16
- package/src/DOMAPI/HTMLFrameSetElement.res +0 -3
- package/src/DOMAPI/HTMLHRElement.res +0 -3
- package/src/DOMAPI/HTMLHeadElement.res +0 -3
- package/src/DOMAPI/HTMLHeadingElement.res +0 -3
- package/src/DOMAPI/HTMLHtmlElement.res +0 -3
- package/src/DOMAPI/HTMLIFrameElement.res +0 -6
- package/src/DOMAPI/HTMLImageElement.res +0 -9
- package/src/DOMAPI/HTMLLIElement.res +0 -3
- package/src/DOMAPI/HTMLLabelElement.res +0 -3
- package/src/DOMAPI/HTMLLegendElement.res +0 -3
- package/src/DOMAPI/HTMLLinkElement.res +0 -3
- package/src/DOMAPI/HTMLMapElement.res +0 -3
- package/src/DOMAPI/HTMLMenuElement.res +0 -3
- package/src/DOMAPI/HTMLMetaElement.res +0 -3
- package/src/DOMAPI/HTMLMeterElement.res +0 -3
- package/src/DOMAPI/HTMLModElement.res +0 -3
- package/src/DOMAPI/HTMLOListElement.res +0 -3
- package/src/DOMAPI/HTMLOptGroupElement.res +0 -3
- package/src/DOMAPI/HTMLOptionElement.res +0 -3
- package/src/DOMAPI/HTMLParagraphElement.res +0 -3
- package/src/DOMAPI/HTMLPictureElement.res +0 -3
- package/src/DOMAPI/HTMLPreElement.res +0 -3
- package/src/DOMAPI/HTMLProgressElement.res +0 -3
- package/src/DOMAPI/HTMLQuoteElement.res +0 -3
- package/src/DOMAPI/HTMLSlotElement.res +0 -29
- package/src/DOMAPI/HTMLSourceElement.res +0 -3
- package/src/DOMAPI/HTMLSpanElement.res +0 -3
- package/src/DOMAPI/HTMLStyleElement.res +0 -3
- package/src/DOMAPI/HTMLTableCaptionElement.res +0 -3
- package/src/DOMAPI/HTMLTableCellElement.res +0 -3
- package/src/DOMAPI/HTMLTemplateElement.res +0 -3
- package/src/DOMAPI/HTMLTimeElement.res +0 -3
- package/src/DOMAPI/HTMLTitleElement.res +0 -3
- package/src/DOMAPI/HTMLTrackElement.res +0 -3
- package/src/DOMAPI/HTMLUListElement.res +0 -3
- package/src/DOMAPI/HTMLVideoElement.res +0 -31
- package/src/DOMAPI/MediaQueryList.res +0 -3
- package/src/DOMAPI/Navigator.res +0 -115
- package/src/DOMAPI/NodeFilter.res +0 -4
- package/src/DOMAPI/SVGGraphicsElement.res +0 -17
- package/src/DOMAPI/ScreenOrientation.res +0 -9
- package/src/DOMAPI/ShadowRoot.res +0 -21
- package/src/DOMAPI/StylePropertyMap.res +0 -50
- package/src/DOMAPI/TextTrackList.res +0 -10
- package/src/DOMAPI/VideoFrame.res +0 -111
- package/src/DOMAPI/Window.res +0 -517
- package/src/EncryptedMediaExtensionsAPI/MediaKeySystemAccess.res +0 -13
- package/src/EncryptedMediaExtensionsAPI/MediaKeys.res +0 -27
- package/src/FetchAPI/FormDataEntryValue.res +0 -22
- package/src/FileAPI/FileSystemDirectoryHandle.res +0 -45
- package/src/FileAPI/FileSystemFileHandle.res +0 -23
- package/src/FileAPI/FileSystemHandle.res +0 -7
- package/src/FileAPI/FileSystemWritableFileStream.res +0 -62
- package/src/FileAPI/ReadableStream.res +0 -60
- package/src/FileAPI/WritableStream.res +0 -28
- package/src/FileAndDirectoryEntriesAPI/FileSystemDirectoryEntry.res +0 -42
- package/src/FileAndDirectoryEntriesAPI/FileSystemDirectoryReader.res +0 -11
- package/src/FileAndDirectoryEntriesAPI/FileSystemEntry.res +0 -11
- package/src/GamepadAPI/GamepadHapticActuator.res +0 -17
- package/src/GeolocationAPI/Geolocation.res +0 -29
- package/src/IntersectionObserverAPI/IntersectionObserver.res +0 -35
- package/src/IntersectionObserverAPI/IntersectionObserverRoot.res +0 -22
- package/src/MediaCapabilitiesAPI/MediaCapabilities.res +0 -19
- package/src/MediaCaptureAndStreamsAPI/MediaDeviceInfo.res +0 -7
- package/src/MediaCaptureAndStreamsAPI/MediaDevices.res +0 -34
- package/src/MediaCaptureAndStreamsAPI/MediaStream.res +0 -63
- package/src/MediaCaptureAndStreamsAPI/MediaStreamTrack.res +0 -42
- package/src/MediaSessionAPI/MediaMetadata.res +0 -7
- package/src/MediaSessionAPI/MediaSession.res +0 -17
- package/src/MutationObserverAPI/MutationObserver.res +0 -27
- package/src/NotificationAPI/Notification.res +0 -29
- package/src/PerformanceAPI/Performance.res +0 -90
- package/src/PerformanceAPI/PerformanceMark.res +0 -15
- package/src/PermissionsAPI/Permissions.res +0 -7
- package/src/Prelude/DOMException.res +0 -7
- package/src/Prelude.res +0 -37
- package/src/PushAPI/ApplicationServerKey.res +0 -4
- package/src/PushAPI/PushEvent.res +0 -3
- package/src/PushAPI/PushManager.res +0 -25
- package/src/RemotePlaybackAPI/RemotePlayback.res +0 -23
- package/src/ResizeObserverAPI/ResizeObserver.res +0 -27
- package/src/ScreenWakeLockAPI/WakeLock.res +0 -7
- package/src/ScreenWakeLockAPI/WakeLockSentinel.res +0 -9
- package/src/ServiceWorkerAPI/Cache.res +0 -100
- package/src/ServiceWorkerAPI/ServiceWorker.res +0 -21
- package/src/ServiceWorkerAPI/ServiceWorkerContainer.res +0 -35
- package/src/ServiceWorkerAPI/ServiceWorkerGlobalScope.res +0 -10
- package/src/UIEventsAPI/CompositionEvent.res +0 -10
- package/src/UIEventsAPI/FocusEvent.res +0 -9
- package/src/UIEventsAPI/InputEvent.res +0 -16
- package/src/UIEventsAPI/KeyboardEvent.res +0 -16
- package/src/UIEventsAPI/PointerEvent.res +0 -21
- package/src/UIEventsAPI/TouchEvent.res +0 -9
- package/src/UIEventsAPI/UIEvent.res +0 -19
- package/src/UIEventsAPI/WheelEvent.res +0 -9
- package/src/WebAudioAPI/AnalyserNode.res +0 -34
- package/src/WebAudioAPI/AudioContext.res +0 -56
- package/src/WebAudioAPI/AudioDestinationNode.res +0 -3
- package/src/WebAudioAPI/AudioProcessingEvent.res +0 -10
- package/src/WebAudioAPI/AudioWorkletNode.res +0 -13
- package/src/WebAudioAPI/ChannelMergerNode.res +0 -10
- package/src/WebAudioAPI/ChannelSplitterNode.res +0 -12
- package/src/WebAudioAPI/ConstantSourceNode.res +0 -12
- package/src/WebAudioAPI/ConvolverNode.res +0 -10
- package/src/WebAudioAPI/DelayNode.res +0 -9
- package/src/WebAudioAPI/DynamicsCompressorNode.res +0 -12
- package/src/WebAudioAPI/GainNode.res +0 -9
- package/src/WebAudioAPI/MediaElementAudioSourceNode.res +0 -12
- package/src/WebAudioAPI/MediaStreamAudioDestinationNode.res +0 -12
- package/src/WebAudioAPI/MediaStreamAudioSourceNode.res +0 -12
- package/src/WebAudioAPI/OfflineAudioCompletionEvent.res +0 -12
- package/src/WebAudioAPI/OfflineAudioContext.res +0 -34
- package/src/WebAudioAPI/OscillatorNode.res +0 -16
- package/src/WebAudioAPI/PannerNode.res +0 -9
- package/src/WebAudioAPI/PeriodicWave.res +0 -8
- package/src/WebAudioAPI/StereoPannerNode.res +0 -10
- package/src/WebAudioAPI/WaveShaperNode.res +0 -10
- package/src/WebCryptoAPI/SubtleCrypto.res +0 -173
- package/src/WebLocksAPI/LockManager.res +0 -25
- package/src/WebSocketsAPI/CloseEvent.res +0 -9
- package/src/WebSocketsAPI/WebSocket.res +0 -51
- package/src/WebSpeechAPI/SpeechSynthesisUtterance.res +0 -9
- package/src/WebStorageAPI/StorageEvent.res +0 -9
- package/src/WebWorkersAPI/CacheStorage.res +0 -46
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
open DOMAPI
|
|
2
|
-
open Prelude
|
|
3
|
-
|
|
4
1
|
module Impl = (
|
|
5
2
|
T: {
|
|
6
3
|
type t
|
|
@@ -8,7 +5,7 @@ module Impl = (
|
|
|
8
5
|
) => {
|
|
9
6
|
include Node.Impl({type t = T.t})
|
|
10
7
|
|
|
11
|
-
external asElement: T.t => element = "%identity"
|
|
8
|
+
external asElement: T.t => DomTypes.element = "%identity"
|
|
12
9
|
|
|
13
10
|
/**
|
|
14
11
|
Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.
|
|
@@ -17,7 +14,7 @@ Throws a "HierarchyRequestError" DOMException if the constraints of the node tre
|
|
|
17
14
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/after)
|
|
18
15
|
*/
|
|
19
16
|
@send
|
|
20
|
-
external after: (T.t, node) => unit = "after"
|
|
17
|
+
external after: (T.t, DomTypes.node) => unit = "after"
|
|
21
18
|
|
|
22
19
|
/**
|
|
23
20
|
Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.
|
|
@@ -32,14 +29,17 @@ Throws a "HierarchyRequestError" DOMException if the constraints of the node tre
|
|
|
32
29
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/animate)
|
|
33
30
|
*/
|
|
34
31
|
@send
|
|
35
|
-
external animate: (T.t, ~keyframes:
|
|
32
|
+
external animate: (T.t, ~keyframes: unknown, ~options: float=?) => DomTypes.animation = "animate"
|
|
36
33
|
|
|
37
34
|
/**
|
|
38
35
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/animate)
|
|
39
36
|
*/
|
|
40
37
|
@send
|
|
41
|
-
external animate2: (
|
|
42
|
-
|
|
38
|
+
external animate2: (
|
|
39
|
+
T.t,
|
|
40
|
+
~keyframes: unknown,
|
|
41
|
+
~options: DomTypes.keyframeAnimationOptions=?,
|
|
42
|
+
) => DomTypes.animation = "animate"
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
|
|
@@ -48,7 +48,7 @@ Throws a "HierarchyRequestError" DOMException if the constraints of the node tre
|
|
|
48
48
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/append)
|
|
49
49
|
*/
|
|
50
50
|
@send
|
|
51
|
-
external append: (T.t, node) => unit = "append"
|
|
51
|
+
external append: (T.t, DomTypes.node) => unit = "append"
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
54
|
Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
|
|
@@ -64,7 +64,7 @@ Creates a shadow root for element and returns it.
|
|
|
64
64
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/attachShadow)
|
|
65
65
|
*/
|
|
66
66
|
@send
|
|
67
|
-
external attachShadow: (T.t, shadowRootInit) => shadowRoot = "attachShadow"
|
|
67
|
+
external attachShadow: (T.t, DomTypes.shadowRootInit) => DomTypes.shadowRoot = "attachShadow"
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
70
|
Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.
|
|
@@ -73,7 +73,7 @@ Throws a "HierarchyRequestError" DOMException if the constraints of the node tre
|
|
|
73
73
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/before)
|
|
74
74
|
*/
|
|
75
75
|
@send
|
|
76
|
-
external before: (T.t, node) => unit = "before"
|
|
76
|
+
external before: (T.t, DomTypes.node) => unit = "before"
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
79
|
Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.
|
|
@@ -88,7 +88,8 @@ Throws a "HierarchyRequestError" DOMException if the constraints of the node tre
|
|
|
88
88
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/checkVisibility)
|
|
89
89
|
*/
|
|
90
90
|
@send
|
|
91
|
-
external checkVisibility: (T.t, ~options: checkVisibilityOptions=?) => bool =
|
|
91
|
+
external checkVisibility: (T.t, ~options: DomTypes.checkVisibilityOptions=?) => bool =
|
|
92
|
+
"checkVisibility"
|
|
92
93
|
|
|
93
94
|
/**
|
|
94
95
|
Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.
|
|
@@ -101,14 +102,16 @@ Returns the first (starting at element) inclusive ancestor that matches selector
|
|
|
101
102
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/computedStyleMap)
|
|
102
103
|
*/
|
|
103
104
|
@send
|
|
104
|
-
external computedStyleMap: T.t => stylePropertyMapReadOnly = "computedStyleMap"
|
|
105
|
+
external computedStyleMap: T.t => DomTypes.stylePropertyMapReadOnly = "computedStyleMap"
|
|
105
106
|
|
|
106
107
|
/**
|
|
107
108
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAnimations)
|
|
108
109
|
*/
|
|
109
110
|
@send
|
|
110
|
-
external getAnimations: (
|
|
111
|
-
|
|
111
|
+
external getAnimations: (
|
|
112
|
+
T.t,
|
|
113
|
+
~options: DomTypes.getAnimationsOptions=?,
|
|
114
|
+
) => array<DomTypes.animation> = "getAnimations"
|
|
112
115
|
|
|
113
116
|
/**
|
|
114
117
|
Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.
|
|
@@ -128,13 +131,13 @@ Returns the qualified names of all element's attributes. Can contain duplicates.
|
|
|
128
131
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNode)
|
|
129
132
|
*/
|
|
130
133
|
@send
|
|
131
|
-
external getAttributeNode: (T.t, string) => attr = "getAttributeNode"
|
|
134
|
+
external getAttributeNode: (T.t, string) => DomTypes.attr = "getAttributeNode"
|
|
132
135
|
|
|
133
136
|
/**
|
|
134
137
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNodeNS)
|
|
135
138
|
*/
|
|
136
139
|
@send
|
|
137
|
-
external getAttributeNodeNS: (T.t, ~namespace: string, ~localName: string) => attr =
|
|
140
|
+
external getAttributeNodeNS: (T.t, ~namespace: string, ~localName: string) => DomTypes.attr =
|
|
138
141
|
"getAttributeNodeNS"
|
|
139
142
|
|
|
140
143
|
/**
|
|
@@ -149,43 +152,44 @@ Returns element's attribute whose namespace is namespace and local name is local
|
|
|
149
152
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getBoundingClientRect)
|
|
150
153
|
*/
|
|
151
154
|
@send
|
|
152
|
-
external getBoundingClientRect: T.t => domRect = "getBoundingClientRect"
|
|
155
|
+
external getBoundingClientRect: T.t => DomTypes.domRect = "getBoundingClientRect"
|
|
153
156
|
|
|
154
157
|
/**
|
|
155
158
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getClientRects)
|
|
156
159
|
*/
|
|
157
160
|
@send
|
|
158
|
-
external getClientRects: T.t => domRectList = "getClientRects"
|
|
161
|
+
external getClientRects: T.t => DomTypes.domRectList = "getClientRects"
|
|
159
162
|
|
|
160
163
|
/**
|
|
161
164
|
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.
|
|
162
165
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getElementsByClassName)
|
|
163
166
|
*/
|
|
164
167
|
@send
|
|
165
|
-
external getElementsByClassName: (T.t, string) => htmlCollection<element> =
|
|
168
|
+
external getElementsByClassName: (T.t, string) => DomTypes.htmlCollection<DomTypes.element> =
|
|
166
169
|
"getElementsByClassName"
|
|
167
170
|
|
|
168
171
|
/**
|
|
169
172
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName)
|
|
170
173
|
*/
|
|
171
174
|
@send
|
|
172
|
-
external getElementsByTagName: (T.t, string) => htmlCollection<element> =
|
|
175
|
+
external getElementsByTagName: (T.t, string) => DomTypes.htmlCollection<DomTypes.element> =
|
|
176
|
+
"getElementsByTagName"
|
|
173
177
|
|
|
174
178
|
/**
|
|
175
179
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagNameNS)
|
|
176
180
|
*/
|
|
177
181
|
@send
|
|
178
182
|
external getElementsByTagNameNS: (
|
|
179
|
-
element,
|
|
183
|
+
DomTypes.element,
|
|
180
184
|
~namespace: string,
|
|
181
185
|
~localName: string,
|
|
182
|
-
) => htmlCollection<element> = "getElementsByTagNameNS"
|
|
186
|
+
) => DomTypes.htmlCollection<DomTypes.element> = "getElementsByTagNameNS"
|
|
183
187
|
|
|
184
188
|
/**
|
|
185
189
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getHTML)
|
|
186
190
|
*/
|
|
187
191
|
@send
|
|
188
|
-
external getHTML: (T.t, ~options: getHTMLOptions=?) => string = "getHTML"
|
|
192
|
+
external getHTML: (T.t, ~options: DomTypes.getHTMLOptions=?) => string = "getHTML"
|
|
189
193
|
|
|
190
194
|
/**
|
|
191
195
|
Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.
|
|
@@ -218,21 +222,24 @@ Returns true if element has attributes, and false otherwise.
|
|
|
218
222
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement)
|
|
219
223
|
*/
|
|
220
224
|
@send
|
|
221
|
-
external insertAdjacentElement: (
|
|
222
|
-
|
|
225
|
+
external insertAdjacentElement: (
|
|
226
|
+
T.t,
|
|
227
|
+
~where: DomTypes.insertPosition,
|
|
228
|
+
~element: DomTypes.element,
|
|
229
|
+
) => DomTypes.element = "insertAdjacentElement"
|
|
223
230
|
|
|
224
231
|
/**
|
|
225
232
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML)
|
|
226
233
|
*/
|
|
227
234
|
@send
|
|
228
|
-
external insertAdjacentHTML: (T.t, ~position: insertPosition, ~string: string) => unit =
|
|
235
|
+
external insertAdjacentHTML: (T.t, ~position: DomTypes.insertPosition, ~string: string) => unit =
|
|
229
236
|
"insertAdjacentHTML"
|
|
230
237
|
|
|
231
238
|
/**
|
|
232
239
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText)
|
|
233
240
|
*/
|
|
234
241
|
@send
|
|
235
|
-
external insertAdjacentText: (T.t, ~where: insertPosition, ~data: string) => unit =
|
|
242
|
+
external insertAdjacentText: (T.t, ~where: DomTypes.insertPosition, ~data: string) => unit =
|
|
236
243
|
"insertAdjacentText"
|
|
237
244
|
|
|
238
245
|
/**
|
|
@@ -249,7 +256,7 @@ Throws a "HierarchyRequestError" DOMException if the constraints of the node tre
|
|
|
249
256
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/prepend)
|
|
250
257
|
*/
|
|
251
258
|
@send
|
|
252
|
-
external prepend: (T.t, node) => unit = "prepend"
|
|
259
|
+
external prepend: (T.t, DomTypes.node) => unit = "prepend"
|
|
253
260
|
|
|
254
261
|
/**
|
|
255
262
|
Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
|
|
@@ -265,14 +272,15 @@ Returns the first element that is a descendant of node that matches selectors.
|
|
|
265
272
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/querySelector)
|
|
266
273
|
*/
|
|
267
274
|
@send
|
|
268
|
-
external querySelector: (T.t, string) => Null.t<element> = "querySelector"
|
|
275
|
+
external querySelector: (T.t, string) => Null.t<DomTypes.element> = "querySelector"
|
|
269
276
|
|
|
270
277
|
/**
|
|
271
278
|
Returns all element descendants of node that match selectors.
|
|
272
279
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/querySelectorAll)
|
|
273
280
|
*/
|
|
274
281
|
@send
|
|
275
|
-
external querySelectorAll: (T.t, string) => nodeList<element> =
|
|
282
|
+
external querySelectorAll: (T.t, string) => DomTypes.nodeList<DomTypes.element> =
|
|
283
|
+
"querySelectorAll"
|
|
276
284
|
|
|
277
285
|
/**
|
|
278
286
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture)
|
|
@@ -298,7 +306,7 @@ Removes element's first attribute whose qualified name is qualifiedName.
|
|
|
298
306
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNode)
|
|
299
307
|
*/
|
|
300
308
|
@send
|
|
301
|
-
external removeAttributeNode: (T.t, attr) => attr = "removeAttributeNode"
|
|
309
|
+
external removeAttributeNode: (T.t, DomTypes.attr) => DomTypes.attr = "removeAttributeNode"
|
|
302
310
|
|
|
303
311
|
/**
|
|
304
312
|
Removes element's attribute whose namespace is namespace and local name is localName.
|
|
@@ -315,7 +323,7 @@ Throws a "HierarchyRequestError" DOMException if the constraints of the node tre
|
|
|
315
323
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/replaceChildren)
|
|
316
324
|
*/
|
|
317
325
|
@send
|
|
318
|
-
external replaceChildren: (T.t, node) => unit = "replaceChildren"
|
|
326
|
+
external replaceChildren: (T.t, DomTypes.node) => unit = "replaceChildren"
|
|
319
327
|
|
|
320
328
|
/**
|
|
321
329
|
Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.
|
|
@@ -333,7 +341,7 @@ Throws a "HierarchyRequestError" DOMException if the constraints of the node tre
|
|
|
333
341
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith)
|
|
334
342
|
*/
|
|
335
343
|
@send
|
|
336
|
-
external replaceWith: (T.t, node) => unit = "replaceWith"
|
|
344
|
+
external replaceWith: (T.t, DomTypes.node) => unit = "replaceWith"
|
|
337
345
|
|
|
338
346
|
/**
|
|
339
347
|
Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.
|
|
@@ -351,21 +359,21 @@ When supplied, options's navigationUI member indicates whether showing navigatio
|
|
|
351
359
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/requestFullscreen)
|
|
352
360
|
*/
|
|
353
361
|
@send
|
|
354
|
-
external requestFullscreen: (T.t, ~options: fullscreenOptions=?) => promise<unit> =
|
|
362
|
+
external requestFullscreen: (T.t, ~options: DomTypes.fullscreenOptions=?) => promise<unit> =
|
|
355
363
|
"requestFullscreen"
|
|
356
364
|
|
|
357
365
|
/**
|
|
358
366
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock)
|
|
359
367
|
*/
|
|
360
368
|
@send
|
|
361
|
-
external requestPointerLock: (T.t, ~options: pointerLockOptions=?) => promise<unit> =
|
|
369
|
+
external requestPointerLock: (T.t, ~options: DomTypes.pointerLockOptions=?) => promise<unit> =
|
|
362
370
|
"requestPointerLock"
|
|
363
371
|
|
|
364
372
|
/**
|
|
365
373
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scroll)
|
|
366
374
|
*/
|
|
367
375
|
@send
|
|
368
|
-
external scroll: (T.t, ~options: scrollToOptions=?) => unit = "scroll"
|
|
376
|
+
external scroll: (T.t, ~options: DomTypes.scrollToOptions=?) => unit = "scroll"
|
|
369
377
|
|
|
370
378
|
/**
|
|
371
379
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scroll)
|
|
@@ -377,7 +385,7 @@ When supplied, options's navigationUI member indicates whether showing navigatio
|
|
|
377
385
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollBy)
|
|
378
386
|
*/
|
|
379
387
|
@send
|
|
380
|
-
external scrollBy: (T.t, ~options: scrollToOptions=?) => unit = "scrollBy"
|
|
388
|
+
external scrollBy: (T.t, ~options: DomTypes.scrollToOptions=?) => unit = "scrollBy"
|
|
381
389
|
|
|
382
390
|
/**
|
|
383
391
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollBy)
|
|
@@ -425,13 +433,14 @@ element->Element.scrollIntoViewWithOptions({ behavior: DOMAPI.Smooth })
|
|
|
425
433
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView)
|
|
426
434
|
*/
|
|
427
435
|
@send
|
|
428
|
-
external scrollIntoViewWithOptions: (T.t, scrollIntoViewOptions) => unit =
|
|
436
|
+
external scrollIntoViewWithOptions: (T.t, DomTypes.scrollIntoViewOptions) => unit =
|
|
437
|
+
"scrollIntoView"
|
|
429
438
|
|
|
430
439
|
/**
|
|
431
440
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollTo)
|
|
432
441
|
*/
|
|
433
442
|
@send
|
|
434
|
-
external scrollTo: (T.t, ~options: scrollToOptions=?) => unit = "scrollTo"
|
|
443
|
+
external scrollTo: (T.t, ~options: DomTypes.scrollToOptions=?) => unit = "scrollTo"
|
|
435
444
|
|
|
436
445
|
/**
|
|
437
446
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollTo)
|
|
@@ -450,13 +459,13 @@ Sets the value of element's first attribute whose qualified name is qualifiedNam
|
|
|
450
459
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNode)
|
|
451
460
|
*/
|
|
452
461
|
@send
|
|
453
|
-
external setAttributeNode: (T.t, attr) => attr = "setAttributeNode"
|
|
462
|
+
external setAttributeNode: (T.t, DomTypes.attr) => DomTypes.attr = "setAttributeNode"
|
|
454
463
|
|
|
455
464
|
/**
|
|
456
465
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS)
|
|
457
466
|
*/
|
|
458
467
|
@send
|
|
459
|
-
external setAttributeNodeNS: (T.t, attr) => attr = "setAttributeNodeNS"
|
|
468
|
+
external setAttributeNodeNS: (T.t, DomTypes.attr) => DomTypes.attr = "setAttributeNodeNS"
|
|
460
469
|
|
|
461
470
|
/**
|
|
462
471
|
Sets the value of element's attribute whose namespace is namespace and local name is localName to value.
|
|
@@ -464,7 +473,7 @@ Sets the value of element's attribute whose namespace is namespace and local nam
|
|
|
464
473
|
*/
|
|
465
474
|
@send
|
|
466
475
|
external setAttributeNS: (
|
|
467
|
-
element,
|
|
476
|
+
DomTypes.element,
|
|
468
477
|
~namespace: string,
|
|
469
478
|
~qualifiedName: string,
|
|
470
479
|
~value: string,
|
|
@@ -493,6 +502,6 @@ Returns true if qualifiedName is now present, and false otherwise.
|
|
|
493
502
|
"toggleAttribute"
|
|
494
503
|
}
|
|
495
504
|
|
|
496
|
-
include Impl({type t = element})
|
|
505
|
+
include Impl({type t = DomTypes.element})
|
|
497
506
|
|
|
498
507
|
let isInstanceOf = (_: 't): bool => %raw(`param instanceof Element`)
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
open DOMAPI
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
Sets both the state and submission value of internals's target element to value.
|
|
5
3
|
|
|
@@ -7,7 +5,7 @@ If value is null, the element won't participate in form submission.
|
|
|
7
5
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/ElementInternals/setFormValue)
|
|
8
6
|
*/
|
|
9
7
|
@send
|
|
10
|
-
external setFormValue: (elementInternals, ~value: unknown, ~state: unknown=?) => unit =
|
|
8
|
+
external setFormValue: (DomTypes.elementInternals, ~value: unknown, ~state: unknown=?) => unit =
|
|
11
9
|
"setFormValue"
|
|
12
10
|
|
|
13
11
|
/**
|
|
@@ -16,10 +14,10 @@ Marks internals's target element as suffering from the constraints indicated by
|
|
|
16
14
|
*/
|
|
17
15
|
@send
|
|
18
16
|
external setValidity: (
|
|
19
|
-
elementInternals,
|
|
20
|
-
~flags: validityStateFlags=?,
|
|
17
|
+
DomTypes.elementInternals,
|
|
18
|
+
~flags: DomTypes.validityStateFlags=?,
|
|
21
19
|
~message: string=?,
|
|
22
|
-
~anchor: htmlElement=?,
|
|
20
|
+
~anchor: DomTypes.htmlElement=?,
|
|
23
21
|
) => unit = "setValidity"
|
|
24
22
|
|
|
25
23
|
/**
|
|
@@ -27,11 +25,11 @@ Returns true if internals's target element has no validity problems; false other
|
|
|
27
25
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/ElementInternals/checkValidity)
|
|
28
26
|
*/
|
|
29
27
|
@send
|
|
30
|
-
external checkValidity: elementInternals => bool = "checkValidity"
|
|
28
|
+
external checkValidity: DomTypes.elementInternals => bool = "checkValidity"
|
|
31
29
|
|
|
32
30
|
/**
|
|
33
31
|
Returns true if internals's target element has no validity problems; otherwise, returns false, fires an invalid event at the element, and (if the event isn't canceled) reports the problem to the user.
|
|
34
32
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/ElementInternals/reportValidity)
|
|
35
33
|
*/
|
|
36
34
|
@send
|
|
37
|
-
external reportValidity: elementInternals => bool = "reportValidity"
|
|
35
|
+
external reportValidity: DomTypes.elementInternals => bool = "reportValidity"
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
open FileAPI
|
|
2
|
-
open DOMAPI
|
|
3
|
-
|
|
4
1
|
/**
|
|
5
|
-
Returns the `
|
|
2
|
+
Returns the `WebApiFile` at the specified index.
|
|
6
3
|
|
|
7
4
|
`FileList` is not an array, so you need to iterate manually using `length` and `item`:
|
|
8
5
|
|
|
@@ -16,4 +13,4 @@ for i in 0 to fileList.length - 1 {
|
|
|
16
13
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileList/item)
|
|
17
14
|
*/
|
|
18
15
|
@send
|
|
19
|
-
external item: (fileList, int) => file = "item"
|
|
16
|
+
external item: (DomTypes.fileList, int) => FileTypes.file = "item"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include HTMLElement.Impl({type t = DomTypes.htmlAnchorElement})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include HTMLElement.Impl({type t = DomTypes.htmlAreaElement})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include DomHTMLMediaElement.Impl({type t = DomTypes.htmlAudioElement})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include HTMLElement.Impl({type t = DomTypes.htmlbrElement})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include HTMLElement.Impl({type t = DomTypes.htmlBaseElement})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include HTMLElement.Impl({type t = DomTypes.htmlBodyElement})
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
include HTMLElement.Impl({type t = htmlButtonElement})
|
|
1
|
+
include HTMLElement.Impl({type t = DomTypes.htmlButtonElement})
|
|
4
2
|
|
|
5
3
|
/**
|
|
6
4
|
Returns whether a form will validate when it is submitted, without having to submit it.
|
|
7
5
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/checkValidity)
|
|
8
6
|
*/
|
|
9
7
|
@send
|
|
10
|
-
external checkValidity: htmlButtonElement => bool = "checkValidity"
|
|
8
|
+
external checkValidity: DomTypes.htmlButtonElement => bool = "checkValidity"
|
|
11
9
|
|
|
12
10
|
/**
|
|
13
11
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/reportValidity)
|
|
14
12
|
*/
|
|
15
13
|
@send
|
|
16
|
-
external reportValidity: htmlButtonElement => bool = "reportValidity"
|
|
14
|
+
external reportValidity: DomTypes.htmlButtonElement => bool = "reportValidity"
|
|
17
15
|
|
|
18
16
|
/**
|
|
19
17
|
Sets a custom error message that is displayed when a form is submitted.
|
|
@@ -21,4 +19,4 @@ Sets a custom error message that is displayed when a form is submitted.
|
|
|
21
19
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/setCustomValidity)
|
|
22
20
|
*/
|
|
23
21
|
@send
|
|
24
|
-
external setCustomValidity: (htmlButtonElement, string) => unit = "setCustomValidity"
|
|
22
|
+
external setCustomValidity: (DomTypes.htmlButtonElement, string) => unit = "setCustomValidity"
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
open DOMAPI
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
Retrieves an object from various collections.
|
|
5
3
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLCollection/item)
|
|
6
4
|
*/
|
|
7
5
|
@send
|
|
8
|
-
external item: (htmlCollection<'t>, int) => 't = "item"
|
|
6
|
+
external item: (DomTypes.htmlCollection<'t>, int) => 't = "item"
|
|
9
7
|
|
|
10
8
|
/**
|
|
11
9
|
Retrieves a select object or an object from an options collection.
|
|
12
10
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLCollection/namedItem)
|
|
13
11
|
*/
|
|
14
12
|
@send
|
|
15
|
-
external namedItem: (htmlCollection<'t>, string) => 't = "namedItem"
|
|
13
|
+
external namedItem: (DomTypes.htmlCollection<'t>, string) => 't = "namedItem"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include HTMLElement.Impl({type t = DomTypes.htmldListElement})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include HTMLElement.Impl({type t = DomTypes.htmlDataElement})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include HTMLElement.Impl({type t = DomTypes.htmlDataListElement})
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
include HTMLElement.Impl({type t = htmlDialogElement})
|
|
1
|
+
include HTMLElement.Impl({type t = DomTypes.htmlDialogElement})
|
|
4
2
|
|
|
5
3
|
/**
|
|
6
4
|
Displays the dialog element.
|
|
7
5
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/show)
|
|
8
6
|
*/
|
|
9
7
|
@send
|
|
10
|
-
external show: htmlDialogElement => unit = "show"
|
|
8
|
+
external show: DomTypes.htmlDialogElement => unit = "show"
|
|
11
9
|
|
|
12
10
|
/**
|
|
13
11
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/showModal)
|
|
14
12
|
*/
|
|
15
13
|
@send
|
|
16
|
-
external showModal: htmlDialogElement => unit = "showModal"
|
|
14
|
+
external showModal: DomTypes.htmlDialogElement => unit = "showModal"
|
|
17
15
|
|
|
18
16
|
/**
|
|
19
17
|
Closes the dialog element.
|
|
@@ -22,4 +20,4 @@ The argument, if provided, provides a return value.
|
|
|
22
20
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close)
|
|
23
21
|
*/
|
|
24
22
|
@send
|
|
25
|
-
external close: (htmlDialogElement, ~returnValue: string=?) => unit = "close"
|
|
23
|
+
external close: (DomTypes.htmlDialogElement, ~returnValue: string=?) => unit = "close"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include HTMLElement.Impl({type t = DomTypes.htmlDivElement})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
type t = DomTypes.htmlElement
|
|
2
2
|
|
|
3
3
|
module Impl = (
|
|
4
4
|
T: {
|
|
@@ -7,13 +7,13 @@ module Impl = (
|
|
|
7
7
|
) => {
|
|
8
8
|
include Element.Impl({type t = T.t})
|
|
9
9
|
|
|
10
|
-
external asHTMLElement: T.t =>
|
|
10
|
+
external asHTMLElement: T.t => t = "%identity"
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/attachInternals)
|
|
14
14
|
*/
|
|
15
15
|
@send
|
|
16
|
-
external attachInternals: T.t => elementInternals = "attachInternals"
|
|
16
|
+
external attachInternals: T.t => DomTypes.elementInternals = "attachInternals"
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/blur)
|
|
@@ -31,7 +31,7 @@ module Impl = (
|
|
|
31
31
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/focus)
|
|
32
32
|
*/
|
|
33
33
|
@send
|
|
34
|
-
external focus: (T.t, ~options: focusOptions=?) => unit = "focus"
|
|
34
|
+
external focus: (T.t, ~options: DomTypes.focusOptions=?) => unit = "focus"
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidePopover)
|
|
@@ -52,4 +52,4 @@ module Impl = (
|
|
|
52
52
|
external togglePopover: (T.t, ~force: bool=?) => bool = "togglePopover"
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
include Impl({type t =
|
|
55
|
+
include Impl({type t = t})
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
include HTMLElement.Impl({type t = htmlFieldSetElement})
|
|
1
|
+
include HTMLElement.Impl({type t = DomTypes.htmlFieldSetElement})
|
|
4
2
|
|
|
5
3
|
/**
|
|
6
4
|
Returns whether a form will validate when it is submitted, without having to submit it.
|
|
7
5
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/checkValidity)
|
|
8
6
|
*/
|
|
9
7
|
@send
|
|
10
|
-
external checkValidity: htmlFieldSetElement => bool = "checkValidity"
|
|
8
|
+
external checkValidity: DomTypes.htmlFieldSetElement => bool = "checkValidity"
|
|
11
9
|
|
|
12
10
|
/**
|
|
13
11
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/reportValidity)
|
|
14
12
|
*/
|
|
15
13
|
@send
|
|
16
|
-
external reportValidity: htmlFieldSetElement => bool = "reportValidity"
|
|
14
|
+
external reportValidity: DomTypes.htmlFieldSetElement => bool = "reportValidity"
|
|
17
15
|
|
|
18
16
|
/**
|
|
19
17
|
Sets a custom error message that is displayed when a form is submitted.
|
|
@@ -21,4 +19,4 @@ Sets a custom error message that is displayed when a form is submitted.
|
|
|
21
19
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/setCustomValidity)
|
|
22
20
|
*/
|
|
23
21
|
@send
|
|
24
|
-
external setCustomValidity: (htmlFieldSetElement, string) => unit = "setCustomValidity"
|
|
22
|
+
external setCustomValidity: (DomTypes.htmlFieldSetElement, string) => unit = "setCustomValidity"
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
external asHTMLCollection: DomTypes.htmlFormControlsCollection => DomTypes.htmlCollection<
|
|
2
|
+
DomTypes.element,
|
|
3
|
+
> = "%identity"
|
|
4
|
+
/**
|
|
5
|
+
Retrieves an object from various collections.
|
|
6
|
+
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLCollection/item)
|
|
7
|
+
*/
|
|
8
|
+
@send
|
|
9
|
+
external item: (DomTypes.htmlFormControlsCollection, int) => DomTypes.element = "item"
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
Retrieves a select object or an object from an options collection.
|
|
13
|
+
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLCollection/namedItem)
|
|
14
|
+
*/
|
|
15
|
+
@send
|
|
16
|
+
external namedItem: (DomTypes.htmlFormControlsCollection, string) => DomTypes.element = "namedItem"
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
|
|
1
|
+
type t = DomTypes.htmlFormElement
|
|
2
2
|
|
|
3
|
-
include HTMLElement.Impl({type t =
|
|
3
|
+
include HTMLElement.Impl({type t = t})
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
Fires when a FORM is about to be submitted.
|
|
7
7
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit)
|
|
8
8
|
*/
|
|
9
9
|
@send
|
|
10
|
-
external submit:
|
|
10
|
+
external submit: t => unit = "submit"
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/requestSubmit)
|
|
14
14
|
*/
|
|
15
15
|
@send
|
|
16
|
-
external requestSubmit: (
|
|
16
|
+
external requestSubmit: (t, ~submitter: HTMLElement.t=?) => unit = "requestSubmit"
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
Fires when the user resets a form.
|
|
20
20
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset)
|
|
21
21
|
*/
|
|
22
22
|
@send
|
|
23
|
-
external reset:
|
|
23
|
+
external reset: t => unit = "reset"
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
Returns whether a form will validate when it is submitted, without having to submit it.
|
|
27
27
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/checkValidity)
|
|
28
28
|
*/
|
|
29
29
|
@send
|
|
30
|
-
external checkValidity:
|
|
30
|
+
external checkValidity: t => bool = "checkValidity"
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reportValidity)
|
|
34
34
|
*/
|
|
35
35
|
@send
|
|
36
|
-
external reportValidity:
|
|
36
|
+
external reportValidity: t => bool = "reportValidity"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include HTMLElement.Impl({type t = DomTypes.htmlFrameSetElement})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include HTMLElement.Impl({type t = DomTypes.htmlhrElement})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include HTMLElement.Impl({type t = DomTypes.htmlHeadElement})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include HTMLElement.Impl({type t = DomTypes.htmlHeadingElement})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include HTMLElement.Impl({type t = DomTypes.htmlHtmlElement})
|