@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,18 +1,16 @@
|
|
|
1
|
-
open DOMAPI
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
Returns the token with index index.
|
|
5
3
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMTokenList/item)
|
|
6
4
|
*/
|
|
7
5
|
@send
|
|
8
|
-
external item: (domTokenList, int) => string = "item"
|
|
6
|
+
external item: (DomTypes.domTokenList, int) => string = "item"
|
|
9
7
|
|
|
10
8
|
/**
|
|
11
9
|
Returns true if token is present, and false otherwise.
|
|
12
10
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMTokenList/contains)
|
|
13
11
|
*/
|
|
14
12
|
@send
|
|
15
|
-
external contains: (domTokenList, string) => bool = "contains"
|
|
13
|
+
external contains: (DomTypes.domTokenList, string) => bool = "contains"
|
|
16
14
|
|
|
17
15
|
/**
|
|
18
16
|
Adds all arguments passed, except those already present.
|
|
@@ -23,7 +21,7 @@ Throws an "InvalidCharacterError" DOMException if one of the arguments contains
|
|
|
23
21
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMTokenList/add)
|
|
24
22
|
*/
|
|
25
23
|
@send
|
|
26
|
-
external add: (domTokenList, string) => unit = "add"
|
|
24
|
+
external add: (DomTypes.domTokenList, string) => unit = "add"
|
|
27
25
|
|
|
28
26
|
/**
|
|
29
27
|
Removes arguments passed, if they are present.
|
|
@@ -34,7 +32,7 @@ Throws an "InvalidCharacterError" DOMException if one of the arguments contains
|
|
|
34
32
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMTokenList/remove)
|
|
35
33
|
*/
|
|
36
34
|
@send
|
|
37
|
-
external remove: (domTokenList, string) => unit = "remove"
|
|
35
|
+
external remove: (DomTypes.domTokenList, string) => unit = "remove"
|
|
38
36
|
|
|
39
37
|
/**
|
|
40
38
|
If force is not given, "toggles" token, removing it if it's present and adding it if it's not present. If force is true, adds token (same as add()). If force is false, removes token (same as remove()).
|
|
@@ -47,7 +45,7 @@ Throws an "InvalidCharacterError" DOMException if token contains any spaces.
|
|
|
47
45
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMTokenList/toggle)
|
|
48
46
|
*/
|
|
49
47
|
@send
|
|
50
|
-
external toggle: (domTokenList, ~token: string, ~force: bool=?) => bool = "toggle"
|
|
48
|
+
external toggle: (DomTypes.domTokenList, ~token: string, ~force: bool=?) => bool = "toggle"
|
|
51
49
|
|
|
52
50
|
/**
|
|
53
51
|
Replaces token with newToken.
|
|
@@ -60,7 +58,7 @@ Throws an "InvalidCharacterError" DOMException if one of the arguments contains
|
|
|
60
58
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMTokenList/replace)
|
|
61
59
|
*/
|
|
62
60
|
@send
|
|
63
|
-
external replace: (domTokenList, ~token: string, ~newToken: string) => bool = "replace"
|
|
61
|
+
external replace: (DomTypes.domTokenList, ~token: string, ~newToken: string) => bool = "replace"
|
|
64
62
|
|
|
65
63
|
/**
|
|
66
64
|
Returns true if token is in the associated attribute's supported tokens. Returns false otherwise.
|
|
@@ -69,4 +67,4 @@ Throws a TypeError if the associated attribute has no supported tokens defined.
|
|
|
69
67
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMTokenList/supports)
|
|
70
68
|
*/
|
|
71
69
|
@send
|
|
72
|
-
external supports: (domTokenList, string) => bool = "supports"
|
|
70
|
+
external supports: (DomTypes.domTokenList, string) => bool = "supports"
|
|
@@ -1,27 +1,23 @@
|
|
|
1
|
-
open DOMAPI
|
|
2
|
-
open EventAPI
|
|
3
|
-
open ViewTransitionsAPI
|
|
4
|
-
|
|
5
1
|
/**
|
|
6
2
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document)
|
|
7
3
|
*/
|
|
8
4
|
@new
|
|
9
|
-
external make: unit => document = "Document"
|
|
5
|
+
external make: unit => DomTypes.document = "Document"
|
|
10
6
|
|
|
11
|
-
include Node.Impl({type t = document})
|
|
7
|
+
include Node.Impl({type t = DomTypes.document})
|
|
12
8
|
|
|
13
9
|
/**
|
|
14
10
|
Returns the first element within node's descendants whose ID is elementId.
|
|
15
11
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/getElementById)
|
|
16
12
|
*/
|
|
17
13
|
@send
|
|
18
|
-
external getElementById: (document, string) => null<element> = "getElementById"
|
|
14
|
+
external getElementById: (DomTypes.document, string) => null<DomTypes.element> = "getElementById"
|
|
19
15
|
|
|
20
16
|
/**
|
|
21
17
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/getAnimations)
|
|
22
18
|
*/
|
|
23
19
|
@send
|
|
24
|
-
external getAnimations: document => array<animation> = "getAnimations"
|
|
20
|
+
external getAnimations: DomTypes.document => array<DomTypes.animation> = "getAnimations"
|
|
25
21
|
|
|
26
22
|
/**
|
|
27
23
|
Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
|
|
@@ -30,7 +26,7 @@ Throws a "HierarchyRequestError" DOMException if the constraints of the node tre
|
|
|
30
26
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/prepend)
|
|
31
27
|
*/
|
|
32
28
|
@send
|
|
33
|
-
external prepend: (document, node) => unit = "prepend"
|
|
29
|
+
external prepend: (DomTypes.document, DomTypes.node) => unit = "prepend"
|
|
34
30
|
|
|
35
31
|
/**
|
|
36
32
|
Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
|
|
@@ -39,7 +35,7 @@ Throws a "HierarchyRequestError" DOMException if the constraints of the node tre
|
|
|
39
35
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/prepend)
|
|
40
36
|
*/
|
|
41
37
|
@send
|
|
42
|
-
external prepend2: (document, string) => unit = "prepend"
|
|
38
|
+
external prepend2: (DomTypes.document, string) => unit = "prepend"
|
|
43
39
|
|
|
44
40
|
/**
|
|
45
41
|
Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
|
|
@@ -48,7 +44,7 @@ Throws a "HierarchyRequestError" DOMException if the constraints of the node tre
|
|
|
48
44
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/append)
|
|
49
45
|
*/
|
|
50
46
|
@send
|
|
51
|
-
external append: (document, node) => unit = "append"
|
|
47
|
+
external append: (DomTypes.document, DomTypes.node) => unit = "append"
|
|
52
48
|
|
|
53
49
|
/**
|
|
54
50
|
Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
|
|
@@ -57,7 +53,7 @@ Throws a "HierarchyRequestError" DOMException if the constraints of the node tre
|
|
|
57
53
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/append)
|
|
58
54
|
*/
|
|
59
55
|
@send
|
|
60
|
-
external append2: (document, string) => unit = "append"
|
|
56
|
+
external append2: (DomTypes.document, string) => unit = "append"
|
|
61
57
|
|
|
62
58
|
/**
|
|
63
59
|
Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.
|
|
@@ -66,7 +62,7 @@ Throws a "HierarchyRequestError" DOMException if the constraints of the node tre
|
|
|
66
62
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/replaceChildren)
|
|
67
63
|
*/
|
|
68
64
|
@send
|
|
69
|
-
external replaceChildren: (document, node) => unit = "replaceChildren"
|
|
65
|
+
external replaceChildren: (DomTypes.document, DomTypes.node) => unit = "replaceChildren"
|
|
70
66
|
|
|
71
67
|
/**
|
|
72
68
|
Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.
|
|
@@ -75,44 +71,45 @@ Throws a "HierarchyRequestError" DOMException if the constraints of the node tre
|
|
|
75
71
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/replaceChildren)
|
|
76
72
|
*/
|
|
77
73
|
@send
|
|
78
|
-
external replaceChildren2: (document, string) => unit = "replaceChildren"
|
|
74
|
+
external replaceChildren2: (DomTypes.document, string) => unit = "replaceChildren"
|
|
79
75
|
|
|
80
76
|
/**
|
|
81
77
|
Returns the first element that is a descendant of node that matches selectors.
|
|
82
78
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/querySelector)
|
|
83
79
|
*/
|
|
84
80
|
@send
|
|
85
|
-
external querySelector: (document, string) => Null.t<element> = "querySelector"
|
|
81
|
+
external querySelector: (DomTypes.document, string) => Null.t<DomTypes.element> = "querySelector"
|
|
86
82
|
|
|
87
83
|
/**
|
|
88
84
|
Returns all element descendants of node that match selectors.
|
|
89
85
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/querySelectorAll)
|
|
90
86
|
*/
|
|
91
87
|
@send
|
|
92
|
-
external querySelectorAll: (document, string) => nodeList<element> =
|
|
88
|
+
external querySelectorAll: (DomTypes.document, string) => DomTypes.nodeList<DomTypes.element> =
|
|
89
|
+
"querySelectorAll"
|
|
93
90
|
|
|
94
91
|
/**
|
|
95
92
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/createExpression)
|
|
96
93
|
*/
|
|
97
94
|
@send
|
|
98
95
|
external createExpression: (
|
|
99
|
-
document,
|
|
96
|
+
DomTypes.document,
|
|
100
97
|
~expression: string,
|
|
101
|
-
~resolver: xPathNSResolver=?,
|
|
102
|
-
) => xPathExpression = "createExpression"
|
|
98
|
+
~resolver: DomTypes.xPathNSResolver=?,
|
|
99
|
+
) => DomTypes.xPathExpression = "createExpression"
|
|
103
100
|
|
|
104
101
|
/**
|
|
105
102
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/evaluate)
|
|
106
103
|
*/
|
|
107
104
|
@send
|
|
108
105
|
external evaluate: (
|
|
109
|
-
document,
|
|
106
|
+
DomTypes.document,
|
|
110
107
|
~expression: string,
|
|
111
|
-
~contextNode: node,
|
|
112
|
-
~resolver: xPathNSResolver=?,
|
|
108
|
+
~contextNode: DomTypes.node,
|
|
109
|
+
~resolver: DomTypes.xPathNSResolver=?,
|
|
113
110
|
~type_: int=?,
|
|
114
|
-
~result: xPathResult=?,
|
|
115
|
-
) => xPathResult = "evaluate"
|
|
111
|
+
~result: DomTypes.xPathResult=?,
|
|
112
|
+
) => DomTypes.xPathResult = "evaluate"
|
|
116
113
|
|
|
117
114
|
/**
|
|
118
115
|
Retrieves a collection of objects based on the specified element name.
|
|
@@ -120,8 +117,10 @@ Retrieves a collection of objects based on the specified element name.
|
|
|
120
117
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagName)
|
|
121
118
|
*/
|
|
122
119
|
@send
|
|
123
|
-
external getElementsByTagName: (
|
|
124
|
-
|
|
120
|
+
external getElementsByTagName: (
|
|
121
|
+
DomTypes.document,
|
|
122
|
+
string,
|
|
123
|
+
) => DomTypes.htmlCollection<DomTypes.element> = "getElementsByTagName"
|
|
125
124
|
|
|
126
125
|
/**
|
|
127
126
|
If namespace and localName are "*" returns a HTMLCollection of all descendant elements.
|
|
@@ -135,18 +134,20 @@ Otherwise, returns a HTMLCollection of all descendant elements whose namespace i
|
|
|
135
134
|
*/
|
|
136
135
|
@send
|
|
137
136
|
external getElementsByTagNameNS: (
|
|
138
|
-
document,
|
|
137
|
+
DomTypes.document,
|
|
139
138
|
~namespace: string,
|
|
140
139
|
~localName: string,
|
|
141
|
-
) => htmlCollection<element> = "getElementsByTagNameNS"
|
|
140
|
+
) => DomTypes.htmlCollection<DomTypes.element> = "getElementsByTagNameNS"
|
|
142
141
|
|
|
143
142
|
/**
|
|
144
143
|
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.
|
|
145
144
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/getElementsByClassName)
|
|
146
145
|
*/
|
|
147
146
|
@send
|
|
148
|
-
external getElementsByClassName: (
|
|
149
|
-
|
|
147
|
+
external getElementsByClassName: (
|
|
148
|
+
DomTypes.document,
|
|
149
|
+
string,
|
|
150
|
+
) => DomTypes.htmlCollection<DomTypes.element> = "getElementsByClassName"
|
|
150
151
|
|
|
151
152
|
/**
|
|
152
153
|
Creates an instance of the element for the specified tag.
|
|
@@ -154,7 +155,8 @@ Creates an instance of the element for the specified tag.
|
|
|
154
155
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/createElement)
|
|
155
156
|
*/
|
|
156
157
|
@send
|
|
157
|
-
external createElement: (document, string, ~options: string=?) => element =
|
|
158
|
+
external createElement: (DomTypes.document, string, ~options: string=?) => DomTypes.element =
|
|
159
|
+
"createElement"
|
|
158
160
|
|
|
159
161
|
/**
|
|
160
162
|
Creates an instance of the element for the specified tag.
|
|
@@ -163,10 +165,10 @@ Creates an instance of the element for the specified tag.
|
|
|
163
165
|
*/
|
|
164
166
|
@send
|
|
165
167
|
external createElement2: (
|
|
166
|
-
document,
|
|
168
|
+
DomTypes.document,
|
|
167
169
|
~localName: string,
|
|
168
|
-
~options: elementCreationOptions=?,
|
|
169
|
-
) => element = "createElement"
|
|
170
|
+
~options: DomTypes.elementCreationOptions=?,
|
|
171
|
+
) => DomTypes.element = "createElement"
|
|
170
172
|
|
|
171
173
|
/**
|
|
172
174
|
Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName.
|
|
@@ -186,11 +188,11 @@ When supplied, options's is can be used to create a customized built-in element.
|
|
|
186
188
|
*/
|
|
187
189
|
@send
|
|
188
190
|
external createElementNS: (
|
|
189
|
-
document,
|
|
191
|
+
DomTypes.document,
|
|
190
192
|
~namespace: string,
|
|
191
193
|
~qualifiedName: string,
|
|
192
194
|
~options: string=?,
|
|
193
|
-
) => element = "createElementNS"
|
|
195
|
+
) => DomTypes.element = "createElementNS"
|
|
194
196
|
|
|
195
197
|
/**
|
|
196
198
|
Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName.
|
|
@@ -210,18 +212,19 @@ When supplied, options's is can be used to create a customized built-in element.
|
|
|
210
212
|
*/
|
|
211
213
|
@send
|
|
212
214
|
external createElementNS2: (
|
|
213
|
-
document,
|
|
215
|
+
DomTypes.document,
|
|
214
216
|
~namespace: string,
|
|
215
217
|
~qualifiedName: string,
|
|
216
|
-
~options: elementCreationOptions=?,
|
|
217
|
-
) => element = "createElementNS"
|
|
218
|
+
~options: DomTypes.elementCreationOptions=?,
|
|
219
|
+
) => DomTypes.element = "createElementNS"
|
|
218
220
|
|
|
219
221
|
/**
|
|
220
222
|
Creates a new document.
|
|
221
223
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/createDocumentFragment)
|
|
222
224
|
*/
|
|
223
225
|
@send
|
|
224
|
-
external createDocumentFragment: document => documentFragment =
|
|
226
|
+
external createDocumentFragment: DomTypes.document => DomTypes.documentFragment =
|
|
227
|
+
"createDocumentFragment"
|
|
225
228
|
|
|
226
229
|
/**
|
|
227
230
|
Creates a text string from the specified value.
|
|
@@ -229,14 +232,15 @@ Creates a text string from the specified value.
|
|
|
229
232
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/createTextNode)
|
|
230
233
|
*/
|
|
231
234
|
@send
|
|
232
|
-
external createTextNode: (document, string) => text = "createTextNode"
|
|
235
|
+
external createTextNode: (DomTypes.document, string) => DomTypes.text = "createTextNode"
|
|
233
236
|
|
|
234
237
|
/**
|
|
235
238
|
Returns a CDATASection node whose data is data.
|
|
236
239
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/createCDATASection)
|
|
237
240
|
*/
|
|
238
241
|
@send
|
|
239
|
-
external createCDATASection: (document, string) => cdataSection =
|
|
242
|
+
external createCDATASection: (DomTypes.document, string) => DomTypes.cdataSection =
|
|
243
|
+
"createCDATASection"
|
|
240
244
|
|
|
241
245
|
/**
|
|
242
246
|
Creates a comment object with the specified data.
|
|
@@ -244,7 +248,7 @@ Creates a comment object with the specified data.
|
|
|
244
248
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/createComment)
|
|
245
249
|
*/
|
|
246
250
|
@send
|
|
247
|
-
external createComment: (document, string) => comment = "createComment"
|
|
251
|
+
external createComment: (DomTypes.document, string) => DomTypes.comment = "createComment"
|
|
248
252
|
|
|
249
253
|
/**
|
|
250
254
|
Returns a ProcessingInstruction node whose target is target and data is data. If target does not match the Name production an "InvalidCharacterError" DOMException will be thrown. If data contains "?>" an "InvalidCharacterError" DOMException will be thrown.
|
|
@@ -252,10 +256,10 @@ Returns a ProcessingInstruction node whose target is target and data is data. If
|
|
|
252
256
|
*/
|
|
253
257
|
@send
|
|
254
258
|
external createProcessingInstruction: (
|
|
255
|
-
document,
|
|
259
|
+
DomTypes.document,
|
|
256
260
|
~target: string,
|
|
257
261
|
~data: string,
|
|
258
|
-
) => processingInstruction = "createProcessingInstruction"
|
|
262
|
+
) => DomTypes.processingInstruction = "createProcessingInstruction"
|
|
259
263
|
|
|
260
264
|
/**
|
|
261
265
|
Returns a copy of node. If deep is true, the copy also includes the node's descendants.
|
|
@@ -264,7 +268,7 @@ If node is a document or a shadow root, throws a "NotSupportedError" DOMExceptio
|
|
|
264
268
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/importNode)
|
|
265
269
|
*/
|
|
266
270
|
@send
|
|
267
|
-
external importNode: (document, 't, ~deep: bool=?) => 't = "importNode"
|
|
271
|
+
external importNode: (DomTypes.document, 't, ~deep: bool=?) => 't = "importNode"
|
|
268
272
|
|
|
269
273
|
/**
|
|
270
274
|
Moves node from another document and returns it.
|
|
@@ -273,7 +277,7 @@ If node is a document, throws a "NotSupportedError" DOMException or, if node is
|
|
|
273
277
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/adoptNode)
|
|
274
278
|
*/
|
|
275
279
|
@send
|
|
276
|
-
external adoptNode: (document, 't) => 't = "adoptNode"
|
|
280
|
+
external adoptNode: (DomTypes.document, 't) => 't = "adoptNode"
|
|
277
281
|
|
|
278
282
|
/**
|
|
279
283
|
Creates an attribute object with a specified name.
|
|
@@ -281,27 +285,30 @@ Creates an attribute object with a specified name.
|
|
|
281
285
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/createAttribute)
|
|
282
286
|
*/
|
|
283
287
|
@send
|
|
284
|
-
external createAttribute: (document, string) => attr = "createAttribute"
|
|
288
|
+
external createAttribute: (DomTypes.document, string) => DomTypes.attr = "createAttribute"
|
|
285
289
|
|
|
286
290
|
/**
|
|
287
291
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/createAttributeNS)
|
|
288
292
|
*/
|
|
289
293
|
@send
|
|
290
|
-
external createAttributeNS: (
|
|
291
|
-
|
|
294
|
+
external createAttributeNS: (
|
|
295
|
+
DomTypes.document,
|
|
296
|
+
~namespace: string,
|
|
297
|
+
~qualifiedName: string,
|
|
298
|
+
) => DomTypes.attr = "createAttributeNS"
|
|
292
299
|
|
|
293
300
|
/**
|
|
294
301
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/createEvent)
|
|
295
302
|
*/
|
|
296
303
|
@send
|
|
297
|
-
external createEvent: (document, string) => event = "createEvent"
|
|
304
|
+
external createEvent: (DomTypes.document, string) => EventTypes.event = "createEvent"
|
|
298
305
|
|
|
299
306
|
/**
|
|
300
307
|
Returns an empty range object that has both of its boundary points positioned at the beginning of the document.
|
|
301
308
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/createRange)
|
|
302
309
|
*/
|
|
303
310
|
@send
|
|
304
|
-
external createRange: document => range = "createRange"
|
|
311
|
+
external createRange: DomTypes.document => DomTypes.range = "createRange"
|
|
305
312
|
|
|
306
313
|
/**
|
|
307
314
|
Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
|
|
@@ -312,11 +319,11 @@ Creates a NodeIterator object that you can use to traverse filtered lists of nod
|
|
|
312
319
|
*/
|
|
313
320
|
@send
|
|
314
321
|
external createNodeIterator: (
|
|
315
|
-
document,
|
|
316
|
-
~root: node,
|
|
322
|
+
DomTypes.document,
|
|
323
|
+
~root: DomTypes.node,
|
|
317
324
|
~whatToShow: int=?,
|
|
318
|
-
~filter: nodeFilter=?,
|
|
319
|
-
) => nodeIterator = "createNodeIterator"
|
|
325
|
+
~filter: DomTypes.nodeFilter=?,
|
|
326
|
+
) => DomTypes.nodeIterator = "createNodeIterator"
|
|
320
327
|
|
|
321
328
|
/**
|
|
322
329
|
Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.
|
|
@@ -327,44 +334,44 @@ Creates a TreeWalker object that you can use to traverse filtered lists of nodes
|
|
|
327
334
|
*/
|
|
328
335
|
@send
|
|
329
336
|
external createTreeWalker: (
|
|
330
|
-
document,
|
|
331
|
-
~root: node,
|
|
337
|
+
DomTypes.document,
|
|
338
|
+
~root: DomTypes.node,
|
|
332
339
|
~whatToShow: int=?,
|
|
333
|
-
~filter: nodeFilter=?,
|
|
334
|
-
) => treeWalker = "createTreeWalker"
|
|
340
|
+
~filter: DomTypes.nodeFilter=?,
|
|
341
|
+
) => DomTypes.treeWalker = "createTreeWalker"
|
|
335
342
|
|
|
336
343
|
/**
|
|
337
344
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/startViewTransition)
|
|
338
345
|
*/
|
|
339
346
|
@send
|
|
340
347
|
external startViewTransition: (
|
|
341
|
-
document,
|
|
342
|
-
~callbackOptions: viewTransitionUpdateCallback=?,
|
|
343
|
-
) => viewTransition = "startViewTransition"
|
|
348
|
+
DomTypes.document,
|
|
349
|
+
~callbackOptions: ViewTransitionsTypes.viewTransitionUpdateCallback=?,
|
|
350
|
+
) => ViewTransitionsTypes.viewTransition = "startViewTransition"
|
|
344
351
|
|
|
345
352
|
/**
|
|
346
353
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/caretPositionFromPoint)
|
|
347
354
|
*/
|
|
348
355
|
@send
|
|
349
356
|
external caretPositionFromPoint: (
|
|
350
|
-
document,
|
|
357
|
+
DomTypes.document,
|
|
351
358
|
~x: float,
|
|
352
359
|
~y: float,
|
|
353
|
-
~options: caretPositionFromPointOptions=?,
|
|
354
|
-
) => caretPosition = "caretPositionFromPoint"
|
|
360
|
+
~options: DomTypes.caretPositionFromPointOptions=?,
|
|
361
|
+
) => DomTypes.caretPosition = "caretPositionFromPoint"
|
|
355
362
|
|
|
356
363
|
/**
|
|
357
364
|
Stops document's fullscreen element from being displayed fullscreen and resolves promise when done.
|
|
358
365
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/exitFullscreen)
|
|
359
366
|
*/
|
|
360
367
|
@send
|
|
361
|
-
external exitFullscreen: document => promise<unit> = "exitFullscreen"
|
|
368
|
+
external exitFullscreen: DomTypes.document => promise<unit> = "exitFullscreen"
|
|
362
369
|
|
|
363
370
|
/**
|
|
364
371
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static)
|
|
365
372
|
*/
|
|
366
373
|
@scope("Document")
|
|
367
|
-
external parseHTMLUnsafe: string => document = "parseHTMLUnsafe"
|
|
374
|
+
external parseHTMLUnsafe: string => DomTypes.document = "parseHTMLUnsafe"
|
|
368
375
|
|
|
369
376
|
/**
|
|
370
377
|
Gets a collection of objects based on the value of the NAME or ID attribute.
|
|
@@ -372,7 +379,8 @@ Gets a collection of objects based on the value of the NAME or ID attribute.
|
|
|
372
379
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/getElementsByName)
|
|
373
380
|
*/
|
|
374
381
|
@send
|
|
375
|
-
external getElementsByName: (document, string) => nodeList<htmlElement> =
|
|
382
|
+
external getElementsByName: (DomTypes.document, string) => DomTypes.nodeList<DomTypes.htmlElement> =
|
|
383
|
+
"getElementsByName"
|
|
376
384
|
|
|
377
385
|
/**
|
|
378
386
|
Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method.
|
|
@@ -383,7 +391,8 @@ Opens a new window and loads a document specified by a given URL. Also, opens a
|
|
|
383
391
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/open)
|
|
384
392
|
*/
|
|
385
393
|
@send
|
|
386
|
-
external open_: (document, ~unused1: string=?, ~unused2: string=?) => document =
|
|
394
|
+
external open_: (DomTypes.document, ~unused1: string=?, ~unused2: string=?) => DomTypes.document =
|
|
395
|
+
"open"
|
|
387
396
|
|
|
388
397
|
/**
|
|
389
398
|
Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method.
|
|
@@ -394,14 +403,19 @@ Opens a new window and loads a document specified by a given URL. Also, opens a
|
|
|
394
403
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/open)
|
|
395
404
|
*/
|
|
396
405
|
@send
|
|
397
|
-
external open2: (
|
|
406
|
+
external open2: (
|
|
407
|
+
DomTypes.document,
|
|
408
|
+
~url: string,
|
|
409
|
+
~name: string,
|
|
410
|
+
~features: string,
|
|
411
|
+
) => DomTypes.window = "open"
|
|
398
412
|
|
|
399
413
|
/**
|
|
400
414
|
Closes an output stream and forces the sent data to display.
|
|
401
415
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/close)
|
|
402
416
|
*/
|
|
403
417
|
@send
|
|
404
|
-
external close: document => unit = "close"
|
|
418
|
+
external close: DomTypes.document => unit = "close"
|
|
405
419
|
|
|
406
420
|
/**
|
|
407
421
|
Writes one or more HTML expressions to a document in the specified window.
|
|
@@ -409,7 +423,7 @@ Writes one or more HTML expressions to a document in the specified window.
|
|
|
409
423
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/write)
|
|
410
424
|
*/
|
|
411
425
|
@send
|
|
412
|
-
external write: (document, string) => unit = "write"
|
|
426
|
+
external write: (DomTypes.document, string) => unit = "write"
|
|
413
427
|
|
|
414
428
|
/**
|
|
415
429
|
Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.
|
|
@@ -417,44 +431,44 @@ Writes one or more HTML expressions, followed by a carriage return, to a documen
|
|
|
417
431
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/writeln)
|
|
418
432
|
*/
|
|
419
433
|
@send
|
|
420
|
-
external writeln: (document, string) => unit = "writeln"
|
|
434
|
+
external writeln: (DomTypes.document, string) => unit = "writeln"
|
|
421
435
|
|
|
422
436
|
/**
|
|
423
437
|
Gets a value indicating whether the object currently has focus.
|
|
424
438
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/hasFocus)
|
|
425
439
|
*/
|
|
426
440
|
@send
|
|
427
|
-
external hasFocus: document => bool = "hasFocus"
|
|
441
|
+
external hasFocus: DomTypes.document => bool = "hasFocus"
|
|
428
442
|
|
|
429
443
|
/**
|
|
430
444
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/exitPictureInPicture)
|
|
431
445
|
*/
|
|
432
446
|
@send
|
|
433
|
-
external exitPictureInPicture: document => promise<unit> = "exitPictureInPicture"
|
|
447
|
+
external exitPictureInPicture: DomTypes.document => promise<unit> = "exitPictureInPicture"
|
|
434
448
|
|
|
435
449
|
/**
|
|
436
450
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/exitPointerLock)
|
|
437
451
|
*/
|
|
438
452
|
@send
|
|
439
|
-
external exitPointerLock: document => unit = "exitPointerLock"
|
|
453
|
+
external exitPointerLock: DomTypes.document => unit = "exitPointerLock"
|
|
440
454
|
|
|
441
455
|
/**
|
|
442
456
|
Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.
|
|
443
457
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/getSelection)
|
|
444
458
|
*/
|
|
445
459
|
@send
|
|
446
|
-
external getSelection: document => null<selection> = "getSelection"
|
|
460
|
+
external getSelection: DomTypes.document => null<DomTypes.selection> = "getSelection"
|
|
447
461
|
|
|
448
462
|
/**
|
|
449
463
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/hasStorageAccess)
|
|
450
464
|
*/
|
|
451
465
|
@send
|
|
452
|
-
external hasStorageAccess: document => promise<bool> = "hasStorageAccess"
|
|
466
|
+
external hasStorageAccess: DomTypes.document => promise<bool> = "hasStorageAccess"
|
|
453
467
|
|
|
454
468
|
/**
|
|
455
469
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/requestStorageAccess)
|
|
456
470
|
*/
|
|
457
471
|
@send
|
|
458
|
-
external requestStorageAccess: document => promise<unit> = "requestStorageAccess"
|
|
472
|
+
external requestStorageAccess: DomTypes.document => promise<unit> = "requestStorageAccess"
|
|
459
473
|
|
|
460
474
|
let isInstanceOf = (_: 't): bool => %raw(`param instanceof Document`)
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
open DOMAPI
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentFragmentFragment)
|
|
5
3
|
*/
|
|
6
4
|
@new
|
|
7
|
-
external make: unit => documentFragment = "DocumentFragment"
|
|
5
|
+
external make: unit => DomTypes.documentFragment = "DocumentFragment"
|
|
8
6
|
|
|
9
7
|
module Impl = (
|
|
10
8
|
T: {
|
|
@@ -13,7 +11,7 @@ module Impl = (
|
|
|
13
11
|
) => {
|
|
14
12
|
include Node.Impl({type t = T.t})
|
|
15
13
|
|
|
16
|
-
external asDocumentFragment: T.t => documentFragment = "%identity"
|
|
14
|
+
external asDocumentFragment: T.t => DomTypes.documentFragment = "%identity"
|
|
17
15
|
|
|
18
16
|
/**
|
|
19
17
|
Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
|
|
@@ -22,7 +20,7 @@ Throws a "HierarchyRequestError" DOMException if the constraints of the node tre
|
|
|
22
20
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentFragment/append)
|
|
23
21
|
*/
|
|
24
22
|
@send
|
|
25
|
-
external append: (T.t, node) => unit = "append"
|
|
23
|
+
external append: (T.t, DomTypes.node) => unit = "append"
|
|
26
24
|
|
|
27
25
|
/**
|
|
28
26
|
Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
|
|
@@ -38,7 +36,7 @@ Returns the first element within node's descendants whose ID is elementId.
|
|
|
38
36
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentFragment/getElementById)
|
|
39
37
|
*/
|
|
40
38
|
@send
|
|
41
|
-
external getElementById: (T.t, string) => null<element> = "getElementById"
|
|
39
|
+
external getElementById: (T.t, string) => null<DomTypes.element> = "getElementById"
|
|
42
40
|
|
|
43
41
|
/**
|
|
44
42
|
Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
|
|
@@ -47,7 +45,7 @@ Throws a "HierarchyRequestError" DOMException if the constraints of the node tre
|
|
|
47
45
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentFragment/prepend)
|
|
48
46
|
*/
|
|
49
47
|
@send
|
|
50
|
-
external prepend: (T.t, node) => unit = "prepend"
|
|
48
|
+
external prepend: (T.t, DomTypes.node) => unit = "prepend"
|
|
51
49
|
|
|
52
50
|
/**
|
|
53
51
|
Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
|
|
@@ -63,14 +61,15 @@ Returns the first element that is a descendant of node that matches selectors.
|
|
|
63
61
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentFragment/querySelector)
|
|
64
62
|
*/
|
|
65
63
|
@send
|
|
66
|
-
external querySelector: (T.t, string) => Null.t<element> = "querySelector"
|
|
64
|
+
external querySelector: (T.t, string) => Null.t<DomTypes.element> = "querySelector"
|
|
67
65
|
|
|
68
66
|
/**
|
|
69
67
|
Returns all element descendants of node that match selectors.
|
|
70
68
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentFragment/querySelectorAll)
|
|
71
69
|
*/
|
|
72
70
|
@send
|
|
73
|
-
external querySelectorAll: (T.t, string) => nodeList<element> =
|
|
71
|
+
external querySelectorAll: (T.t, string) => DomTypes.nodeList<DomTypes.element> =
|
|
72
|
+
"querySelectorAll"
|
|
74
73
|
|
|
75
74
|
/**
|
|
76
75
|
Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.
|
|
@@ -79,7 +78,7 @@ Throws a "HierarchyRequestError" DOMException if the constraints of the node tre
|
|
|
79
78
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentFragment/replaceChildren)
|
|
80
79
|
*/
|
|
81
80
|
@send
|
|
82
|
-
external replaceChildren: (T.t, node) => unit = "replaceChildren"
|
|
81
|
+
external replaceChildren: (T.t, DomTypes.node) => unit = "replaceChildren"
|
|
83
82
|
|
|
84
83
|
/**
|
|
85
84
|
Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.
|
|
@@ -91,4 +90,4 @@ Throws a "HierarchyRequestError" DOMException if the constraints of the node tre
|
|
|
91
90
|
external replaceChildren2: (T.t, string) => unit = "replaceChildren"
|
|
92
91
|
}
|
|
93
92
|
|
|
94
|
-
include Impl({type t = documentFragment})
|
|
93
|
+
include Impl({type t = DomTypes.documentFragment})
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/DocumentTimeline)
|
|
3
|
+
*/
|
|
4
|
+
@new
|
|
5
|
+
external make: (~options: DomTypes.documentTimelineOptions=?) => DomTypes.documentTimeline =
|
|
6
|
+
"DocumentTimeline"
|
|
7
|
+
|
|
8
|
+
external asAnimationTimeline: DomTypes.documentTimeline => DomTypes.animationTimeline = "%identity"
|