Skip to content

Commit a42309e

Browse files
committed
Add URL API
1 parent 95f8e96 commit a42309e

File tree

161 files changed

+325
-589
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+325
-589
lines changed

src/CSSFontLoadingAPI.res

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ type rec fontFace = {
7777
/**
7878
[See FontFaceSet on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet)
7979
*/
80-
@editor.completeFrom(FontFace)
8180
@editor.completeFrom(FontFaceSet)
8281
type rec fontFaceSet = {
8382
...eventTarget,

src/CSSFontLoadingAPI/FontFaceSet.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
open CSSFontLoadingAPI
22

3-
include EventTarget.Impl({
4-
type t = fontFaceSet
5-
})
3+
include EventTarget.Impl({type t = fontFaceSet})
64

75
/**
86
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet/add)

src/CanvasAPI/OffscreenCanvas.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ open FileAPI
77
@new
88
external make: (~width: int, ~height: int) => offscreenCanvas = "OffscreenCanvas"
99

10-
include EventTarget.Impl({
11-
type t = offscreenCanvas
12-
})
10+
include EventTarget.Impl({type t = offscreenCanvas})
1311

1412
/**
1513
Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.

src/ChannelMessagingAPI/MessagePort.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
open ChannelMessagingAPI
22

3-
include EventTarget.Impl({
4-
type t = messagePort
5-
})
3+
include EventTarget.Impl({type t = messagePort})
64

75
/**
86
Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.

src/ClipboardAPI/Clipboard.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
open ClipboardAPI
22

3-
include EventTarget.Impl({
4-
type t = clipboard
5-
})
3+
include EventTarget.Impl({type t = clipboard})
64

75
/**
86
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Clipboard/read)

src/DOMAPI.res

Lines changed: 35 additions & 70 deletions
Large diffs are not rendered by default.

src/DOMAPI/Animation.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ open DOMAPI
77
external make: (~effect: animationEffect=?, ~timeline: animationTimeline=?) => animation =
88
"Animation"
99

10-
include EventTarget.Impl({
11-
type t = animation
12-
})
10+
include EventTarget.Impl({type t = animation})
1311

1412
/**
1513
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Animation/cancel)

src/DOMAPI/CharacterData.res

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ module Impl = (
55
type t
66
},
77
) => {
8-
include Node.Impl({
9-
type t = T.t
10-
})
8+
include Node.Impl({type t = T.t})
119

1210
external asCharacterData: T.t => characterData = "%identity"
1311

@@ -103,6 +101,4 @@ Throws a "HierarchyRequestError" DOMException if the constraints of the node tre
103101
external substringData: (T.t, ~offset: int, ~count: int) => string = "substringData"
104102
}
105103

106-
include Impl({
107-
type t = characterData
108-
})
104+
include Impl({type t = characterData})

src/DOMAPI/Comment.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
open DOMAPI
22

3-
include CharacterData.Impl({
4-
type t = comment
5-
})
3+
include CharacterData.Impl({type t = comment})
64

75
/**
86
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Comment)

src/DOMAPI/Document.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ open ViewTransitionsAPI
88
@new
99
external make: unit => document = "Document"
1010

11-
include Node.Impl({
12-
type t = document
13-
})
11+
include Node.Impl({type t = document})
1412

1513
/**
1614
Returns the first element within node's descendants whose ID is elementId.

src/DOMAPI/DocumentFragment.res

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ module Impl = (
1111
type t
1212
},
1313
) => {
14-
include Node.Impl({
15-
type t = T.t
16-
})
14+
include Node.Impl({type t = T.t})
1715

1816
external asDocumentFragment: T.t => documentFragment = "%identity"
1917

@@ -93,6 +91,4 @@ Throws a "HierarchyRequestError" DOMException if the constraints of the node tre
9391
external replaceChildren2: (T.t, string) => unit = "replaceChildren"
9492
}
9593

96-
include Impl({
97-
type t = documentFragment
98-
})
94+
include Impl({type t = documentFragment})

src/DOMAPI/Element.res

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ module Impl = (
66
type t
77
},
88
) => {
9-
include Node.Impl({
10-
type t = T.t
11-
})
9+
include Node.Impl({type t = T.t})
1210

1311
external asElement: T.t => element = "%identity"
1412

@@ -495,8 +493,6 @@ Returns true if qualifiedName is now present, and false otherwise.
495493
"toggleAttribute"
496494
}
497495

498-
include Impl({
499-
type t = element
500-
})
496+
include Impl({type t = element})
501497

502498
let isInstanceOf = (_: 't): bool => %raw(`param instanceof Element`)

src/DOMAPI/HTMLAnchorElement.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
open DOMAPI
22

3-
include HTMLElement.Impl({
4-
type t = htmlAnchorElement
5-
})
3+
include HTMLElement.Impl({type t = htmlAnchorElement})

src/DOMAPI/HTMLAreaElement.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
open DOMAPI
22

3-
include HTMLElement.Impl({
4-
type t = htmlAreaElement
5-
})
3+
include HTMLElement.Impl({type t = htmlAreaElement})

src/DOMAPI/HTMLAudioElement.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
open DOMAPI
22

3-
include HTMLMediaElement.Impl({
4-
type t = htmlAudioElement
5-
})
3+
include HTMLMediaElement.Impl({type t = htmlAudioElement})

src/DOMAPI/HTMLBRElement.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
open DOMAPI
22

3-
include HTMLElement.Impl({
4-
type t = htmlbrElement
5-
})
3+
include HTMLElement.Impl({type t = htmlbrElement})

src/DOMAPI/HTMLBaseElement.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
open DOMAPI
22

3-
include HTMLElement.Impl({
4-
type t = htmlBaseElement
5-
})
3+
include HTMLElement.Impl({type t = htmlBaseElement})

src/DOMAPI/HTMLBodyElement.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
open DOMAPI
22

3-
include HTMLElement.Impl({
4-
type t = htmlBodyElement
5-
})
3+
include HTMLElement.Impl({type t = htmlBodyElement})

src/DOMAPI/HTMLButtonElement.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
open DOMAPI
22

3-
include HTMLElement.Impl({
4-
type t = htmlButtonElement
5-
})
3+
include HTMLElement.Impl({type t = htmlButtonElement})
64

75
/**
86
Returns whether a form will validate when it is submitted, without having to submit it.

src/DOMAPI/HTMLCanvasElement.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ open DOMAPI
22
open CanvasAPI
33
open MediaCaptureAndStreamsAPI
44

5-
include HTMLElement.Impl({
6-
type t = htmlCanvasElement
7-
})
5+
include HTMLElement.Impl({type t = htmlCanvasElement})
86

97
/**
108
Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas.

src/DOMAPI/HTMLDListElement.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
open DOMAPI
22

3-
include HTMLElement.Impl({
4-
type t = htmldListElement
5-
})
3+
include HTMLElement.Impl({type t = htmldListElement})

src/DOMAPI/HTMLDataElement.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
open DOMAPI
22

3-
include HTMLElement.Impl({
4-
type t = htmlDataElement
5-
})
3+
include HTMLElement.Impl({type t = htmlDataElement})

src/DOMAPI/HTMLDataListElement.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
open DOMAPI
22

3-
include HTMLElement.Impl({
4-
type t = htmlDataListElement
5-
})
3+
include HTMLElement.Impl({type t = htmlDataListElement})

src/DOMAPI/HTMLDialogElement.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
open DOMAPI
22

3-
include HTMLElement.Impl({
4-
type t = htmlDialogElement
5-
})
3+
include HTMLElement.Impl({type t = htmlDialogElement})
64

75
/**
86
Displays the dialog element.

src/DOMAPI/HTMLDivElement.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
open DOMAPI
22

3-
include HTMLElement.Impl({
4-
type t = htmlDivElement
5-
})
3+
include HTMLElement.Impl({type t = htmlDivElement})

src/DOMAPI/HTMLElement.res

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ module Impl = (
55
type t
66
},
77
) => {
8-
include Element.Impl({
9-
type t = T.t
10-
})
8+
include Element.Impl({type t = T.t})
119

1210
external asHTMLElement: T.t => htmlElement = "%identity"
1311

@@ -54,6 +52,4 @@ module Impl = (
5452
external togglePopover: (T.t, ~force: bool=?) => bool = "togglePopover"
5553
}
5654

57-
include Impl({
58-
type t = htmlElement
59-
})
55+
include Impl({type t = htmlElement})

src/DOMAPI/HTMLEmbedElement.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
open DOMAPI
22

3-
include HTMLElement.Impl({
4-
type t = htmlEmbedElement
5-
})
3+
include HTMLElement.Impl({type t = htmlEmbedElement})
64

75
@send
86
external getSVGDocument: htmlEmbedElement => document = "getSVGDocument"

src/DOMAPI/HTMLFieldSetElement.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
open DOMAPI
22

3-
include HTMLElement.Impl({
4-
type t = htmlFieldSetElement
5-
})
3+
include HTMLElement.Impl({type t = htmlFieldSetElement})
64

75
/**
86
Returns whether a form will validate when it is submitted, without having to submit it.

src/DOMAPI/HTMLFormElement.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
open DOMAPI
22

3-
include HTMLElement.Impl({
4-
type t = htmlFormElement
5-
})
3+
include HTMLElement.Impl({type t = htmlFormElement})
64

75
/**
86
Fires when a FORM is about to be submitted.

src/DOMAPI/HTMLFrameSetElement.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
open DOMAPI
22

3-
include HTMLElement.Impl({
4-
type t = htmlFrameSetElement
5-
})
3+
include HTMLElement.Impl({type t = htmlFrameSetElement})

src/DOMAPI/HTMLHRElement.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
open DOMAPI
22

3-
include HTMLElement.Impl({
4-
type t = htmlhrElement
5-
})
3+
include HTMLElement.Impl({type t = htmlhrElement})

src/DOMAPI/HTMLHeadElement.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
open DOMAPI
22

3-
include HTMLElement.Impl({
4-
type t = htmlHeadElement
5-
})
3+
include HTMLElement.Impl({type t = htmlHeadElement})

src/DOMAPI/HTMLHeadingElement.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
open DOMAPI
22

3-
include HTMLElement.Impl({
4-
type t = htmlHeadingElement
5-
})
3+
include HTMLElement.Impl({type t = htmlHeadingElement})

src/DOMAPI/HTMLHtmlElement.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
open DOMAPI
22

3-
include HTMLElement.Impl({
4-
type t = htmlHtmlElement
5-
})
3+
include HTMLElement.Impl({type t = htmlHtmlElement})

src/DOMAPI/HTMLIFrameElement.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
open DOMAPI
22

3-
include HTMLElement.Impl({
4-
type t = htmliFrameElement
5-
})
3+
include HTMLElement.Impl({type t = htmliFrameElement})
64

75
@send
86
external getSVGDocument: htmliFrameElement => document = "getSVGDocument"

src/DOMAPI/HTMLImageElement.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
open DOMAPI
22

3-
include HTMLElement.Impl({
4-
type t = htmlImageElement
5-
})
3+
include HTMLElement.Impl({type t = htmlImageElement})
64

75
/**
86
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decode)

src/DOMAPI/HTMLInputElement.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
open DOMAPI
22

3-
include HTMLElement.Impl({
4-
type t = htmlInputElement
5-
})
3+
include HTMLElement.Impl({type t = htmlInputElement})
64

75
/**
86
Increments a range input control's value by the value given by the Step attribute. If the optional parameter is used, will increment the input control's value by that value.

src/DOMAPI/HTMLLIElement.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
open DOMAPI
22

3-
include HTMLElement.Impl({
4-
type t = htmlliElement
5-
})
3+
include HTMLElement.Impl({type t = htmlliElement})

src/DOMAPI/HTMLLabelElement.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
open DOMAPI
22

3-
include HTMLElement.Impl({
4-
type t = htmlLabelElement
5-
})
3+
include HTMLElement.Impl({type t = htmlLabelElement})

src/DOMAPI/HTMLLegendElement.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
open DOMAPI
22

3-
include HTMLElement.Impl({
4-
type t = htmlLegendElement
5-
})
3+
include HTMLElement.Impl({type t = htmlLegendElement})

src/DOMAPI/HTMLLinkElement.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
open DOMAPI
22

3-
include HTMLElement.Impl({
4-
type t = htmlLinkElement
5-
})
3+
include HTMLElement.Impl({type t = htmlLinkElement})

src/DOMAPI/HTMLMapElement.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
open DOMAPI
22

3-
include HTMLElement.Impl({
4-
type t = htmlMapElement
5-
})
3+
include HTMLElement.Impl({type t = htmlMapElement})

0 commit comments

Comments
 (0)