1
1
'use strict' ;
2
2
3
+ var Caml_option = require ( "rescript/lib/js/caml_option.js" ) ;
3
4
var Webapi__Dom__Element = require ( "../../../src/Webapi/Dom/Webapi__Dom__Element.js" ) ;
4
5
5
6
var el = document . createElement ( "strong" ) ;
@@ -8,69 +9,117 @@ var el2 = document.createElement("small");
8
9
9
10
var $$event = new PointerEvent ( "my-event" ) ;
10
11
12
+ var assignedSlot = el . assignedSlot ;
13
+
14
+ var attributes = el . attributes ;
15
+
16
+ var classList = el . classList ;
17
+
18
+ var className = el . className ;
19
+
11
20
el . className = "my-class-name" ;
12
21
22
+ var clientHeight = el . clientHeight ;
23
+
24
+ var clientLeft = el . clientLeft ;
25
+
26
+ var clientTop = el . clientTop ;
27
+
28
+ var clientWidth = el . clientWidth ;
29
+
30
+ var id = el . id ;
31
+
13
32
el . id = "my-id" ;
14
33
34
+ var innerHTML = el . innerHTML ;
35
+
15
36
el . innerHTML = "<strong>stuff</strong>" ;
16
37
38
+ var localName = el . localName ;
39
+
40
+ var namespaceURI = el . namespaceURI ;
41
+
42
+ var nextElementSibling = el . nextElementSibling ;
43
+
44
+ var outerHTML = el . outerHTML ;
45
+
17
46
el . outerHTML = "<strong>stuff</strong>" ;
18
47
48
+ var prefix = el . prefix ;
49
+
50
+ var previousElementSibling = el . previousElementSibling ;
51
+
52
+ var scrollHeight = el . scrollHeight ;
53
+
54
+ var scrollLeft = el . scrollLeft ;
55
+
19
56
el . scrollLeft = 0.0 ;
20
57
58
+ var scrollTop = el . scrollTop ;
59
+
21
60
el . scrollTop = 0.0 ;
22
61
62
+ var scrollWidth = el . scrollWidth ;
63
+
64
+ var shadowRoot = el . shadowRoot ;
65
+
66
+ var slot = el . slot ;
67
+
23
68
el . slot = "<strong>stuff</strong>" ;
24
69
25
- el . attachShadow ( {
70
+ var tagName = el . tagName ;
71
+
72
+ var attachShadow = el . attachShadow ( {
26
73
mode : "open"
27
74
} ) ;
28
75
29
- el . attachShadow ( { "mode" : "open" } ) ;
76
+ var attachShadowOpen = el . attachShadow ( { "mode" : "open" } ) ;
30
77
31
- el . attachShadow ( { "mode" : "closed" } ) ;
78
+ var attachShadowClosed = el . attachShadow ( { "mode" : "closed" } ) ;
32
79
33
- el . animate ( {
80
+ var animate = el . animate ( {
34
81
transform : "translateT(0px)"
35
82
} , {
36
83
duration : 1000
37
84
} ) ;
38
85
39
- el . closest ( "input" ) ;
86
+ var closest = el . closest ( "input" ) ;
87
+
88
+ var getAttribute = el . getAttribute ( "href" ) ;
40
89
41
- el . getAttribute ( "href ") ;
90
+ var getAttributeNS = el . getAttributeNS ( "http://..." , "foo ") ;
42
91
43
- el . getAttributeNS ( "http://..." , "foo" ) ;
92
+ var getBoundingClientRect = el . getBoundingClientRect ( ) ;
44
93
45
- el . getBoundingClientRect ( ) ;
94
+ var clientRects = el . getClientRects ( ) ;
46
95
47
- el . getClientRects ( ) . item ( 0 ) ;
96
+ var getClientRectsItem = el . getClientRects ( ) . item ( 0 ) ;
48
97
49
- Array . prototype . slice . call ( el . getClientRects ( ) ) ;
98
+ var getClientRectsArray = Array . prototype . slice . call ( el . getClientRects ( ) ) ;
50
99
51
- el . getElementsByClassName ( "some-class-name" ) ;
100
+ var getElementsByClassName = el . getElementsByClassName ( "some-class-name" ) ;
52
101
53
- el . getElementsByTagName ( "pre" ) ;
102
+ var getElementsByTagName = el . getElementsByTagName ( "pre" ) ;
54
103
55
- el . getElementsByTagNameNS ( "http://..." , "td" ) ;
104
+ var getElementsByTagNameNS = el . getElementsByTagNameNS ( "http://..." , "td" ) ;
56
105
57
- el . hasAttribute ( "data-my-value" ) ;
106
+ var hasAttribute = el . hasAttribute ( "data-my-value" ) ;
58
107
59
- el . hasAttributeNS ( "http://..." , "foo" ) ;
108
+ var hasAttributeNS = el . hasAttributeNS ( "http://..." , "foo" ) ;
60
109
61
- el . hasAttributes ( ) ;
110
+ var hasAttributes = el . hasAttributes ( ) ;
62
111
63
- Webapi__Dom__Element . insertAdjacentElement ( el , /* BeforeBegin */ 0 , el2 ) ;
112
+ var insertAdjacentElement = Webapi__Dom__Element . insertAdjacentElement ( el , /* BeforeBegin */ 0 , el2 ) ;
64
113
65
- Webapi__Dom__Element . insertAdjacentHTML ( el , /* AfterBegin */ 1 , "<strong>text</strong>" ) ;
114
+ var insertAdjacentHTML = Webapi__Dom__Element . insertAdjacentHTML ( el , /* AfterBegin */ 1 , "<strong>text</strong>" ) ;
66
115
67
- Webapi__Dom__Element . insertAdjacentText ( el , /* AfterEnd */ 3 , "text" ) ;
116
+ var insertAdjacentText = Webapi__Dom__Element . insertAdjacentText ( el , /* AfterEnd */ 3 , "text" ) ;
68
117
69
- el . matches ( "input" ) ;
118
+ var matches = el . matches ( "input" ) ;
70
119
71
- el . querySelector ( "input" ) ;
120
+ var querySelector = el . querySelector ( "input" ) ;
72
121
73
- el . querySelectorAll ( "input" ) ;
122
+ var querySelectorAll = el . querySelectorAll ( "input" ) ;
74
123
75
124
el . releasePointerCapture ( $$event . pointerId ) ;
76
125
@@ -99,7 +148,130 @@ el.setAttributeNS("http://...", "foo", "bar");
99
148
100
149
el . setPointerCapture ( $$event . pointerId ) ;
101
150
151
+ var assignedSlot$1 = ( assignedSlot == null ) ? undefined : Caml_option . some ( assignedSlot ) ;
152
+
153
+ var setClassName ;
154
+
155
+ var setId ;
156
+
157
+ var setInnerHTML ;
158
+
159
+ var namespaceURI$1 = ( namespaceURI == null ) ? undefined : Caml_option . some ( namespaceURI ) ;
160
+
161
+ var nextElementSibling$1 = ( nextElementSibling == null ) ? undefined : Caml_option . some ( nextElementSibling ) ;
162
+
163
+ var setOuterHTML ;
164
+
165
+ var prefix$1 = ( prefix == null ) ? undefined : Caml_option . some ( prefix ) ;
166
+
167
+ var previousElementSibling$1 = ( previousElementSibling == null ) ? undefined : Caml_option . some ( previousElementSibling ) ;
168
+
169
+ var setScrollLeft ;
170
+
171
+ var setScrollTop ;
172
+
173
+ var setSlot ;
174
+
175
+ var closest$1 = ( closest == null ) ? undefined : Caml_option . some ( closest ) ;
176
+
177
+ var getAttribute$1 = ( getAttribute == null ) ? undefined : Caml_option . some ( getAttribute ) ;
178
+
179
+ var getAttributeNS$1 = ( getAttributeNS == null ) ? undefined : Caml_option . some ( getAttributeNS ) ;
180
+
181
+ var getClientRectsItem$1 = ( getClientRectsItem == null ) ? undefined : Caml_option . some ( getClientRectsItem ) ;
182
+
183
+ var querySelector$1 = ( querySelector == null ) ? undefined : Caml_option . some ( querySelector ) ;
184
+
185
+ var releasePointerCapture ;
186
+
187
+ var remove ;
188
+
189
+ var removeAttribute ;
190
+
191
+ var removeAttributeNS ;
192
+
193
+ var requestFullscreen ;
194
+
195
+ var requestPointerLock ;
196
+
197
+ var scrollIntoView ;
198
+
199
+ var scrollIntoViewNoAlignToTop ;
200
+
201
+ var scrollIntoViewWithOptions ;
202
+
203
+ var setAttribute ;
204
+
205
+ var setAttributeNS ;
206
+
207
+ var setPointerCapture ;
208
+
102
209
exports . el = el ;
103
210
exports . el2 = el2 ;
104
211
exports . $$event = $$event ;
212
+ exports . assignedSlot = assignedSlot$1 ;
213
+ exports . attributes = attributes ;
214
+ exports . classList = classList ;
215
+ exports . className = className ;
216
+ exports . setClassName = setClassName ;
217
+ exports . clientHeight = clientHeight ;
218
+ exports . clientLeft = clientLeft ;
219
+ exports . clientTop = clientTop ;
220
+ exports . clientWidth = clientWidth ;
221
+ exports . id = id ;
222
+ exports . setId = setId ;
223
+ exports . innerHTML = innerHTML ;
224
+ exports . setInnerHTML = setInnerHTML ;
225
+ exports . localName = localName ;
226
+ exports . namespaceURI = namespaceURI$1 ;
227
+ exports . nextElementSibling = nextElementSibling$1 ;
228
+ exports . outerHTML = outerHTML ;
229
+ exports . setOuterHTML = setOuterHTML ;
230
+ exports . prefix = prefix$1 ;
231
+ exports . previousElementSibling = previousElementSibling$1 ;
232
+ exports . scrollHeight = scrollHeight ;
233
+ exports . scrollLeft = scrollLeft ;
234
+ exports . setScrollLeft = setScrollLeft ;
235
+ exports . scrollTop = scrollTop ;
236
+ exports . setScrollTop = setScrollTop ;
237
+ exports . scrollWidth = scrollWidth ;
238
+ exports . shadowRoot = shadowRoot ;
239
+ exports . slot = slot ;
240
+ exports . setSlot = setSlot ;
241
+ exports . tagName = tagName ;
242
+ exports . attachShadow = attachShadow ;
243
+ exports . attachShadowOpen = attachShadowOpen ;
244
+ exports . attachShadowClosed = attachShadowClosed ;
245
+ exports . animate = animate ;
246
+ exports . closest = closest$1 ;
247
+ exports . getAttribute = getAttribute$1 ;
248
+ exports . getAttributeNS = getAttributeNS$1 ;
249
+ exports . getBoundingClientRect = getBoundingClientRect ;
250
+ exports . clientRects = clientRects ;
251
+ exports . getClientRectsItem = getClientRectsItem$1 ;
252
+ exports . getClientRectsArray = getClientRectsArray ;
253
+ exports . getElementsByClassName = getElementsByClassName ;
254
+ exports . getElementsByTagName = getElementsByTagName ;
255
+ exports . getElementsByTagNameNS = getElementsByTagNameNS ;
256
+ exports . hasAttribute = hasAttribute ;
257
+ exports . hasAttributeNS = hasAttributeNS ;
258
+ exports . hasAttributes = hasAttributes ;
259
+ exports . insertAdjacentElement = insertAdjacentElement ;
260
+ exports . insertAdjacentHTML = insertAdjacentHTML ;
261
+ exports . insertAdjacentText = insertAdjacentText ;
262
+ exports . matches = matches ;
263
+ exports . querySelector = querySelector$1 ;
264
+ exports . querySelectorAll = querySelectorAll ;
265
+ exports . releasePointerCapture = releasePointerCapture ;
266
+ exports . remove = remove ;
267
+ exports . removeAttribute = removeAttribute ;
268
+ exports . removeAttributeNS = removeAttributeNS ;
269
+ exports . requestFullscreen = requestFullscreen ;
270
+ exports . requestPointerLock = requestPointerLock ;
271
+ exports . scrollIntoView = scrollIntoView ;
272
+ exports . scrollIntoViewNoAlignToTop = scrollIntoViewNoAlignToTop ;
273
+ exports . scrollIntoViewWithOptions = scrollIntoViewWithOptions ;
274
+ exports . setAttribute = setAttribute ;
275
+ exports . setAttributeNS = setAttributeNS ;
276
+ exports . setPointerCapture = setPointerCapture ;
105
277
/* el Not a pure module */
0 commit comments