11'use strict' ;
22
3+ var Caml_option = require ( "rescript/lib/js/caml_option.js" ) ;
34var Webapi__Dom__Element = require ( "../../../src/Webapi/Dom/Webapi__Dom__Element.js" ) ;
45
56var el = document . createElement ( "strong" ) ;
@@ -8,69 +9,117 @@ var el2 = document.createElement("small");
89
910var $$event = new PointerEvent ( "my-event" ) ;
1011
12+ var assignedSlot = el . assignedSlot ;
13+
14+ var attributes = el . attributes ;
15+
16+ var classList = el . classList ;
17+
18+ var className = el . className ;
19+
1120el . className = "my-class-name" ;
1221
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+
1332el . id = "my-id" ;
1433
34+ var innerHTML = el . innerHTML ;
35+
1536el . innerHTML = "<strong>stuff</strong>" ;
1637
38+ var localName = el . localName ;
39+
40+ var namespaceURI = el . namespaceURI ;
41+
42+ var nextElementSibling = el . nextElementSibling ;
43+
44+ var outerHTML = el . outerHTML ;
45+
1746el . outerHTML = "<strong>stuff</strong>" ;
1847
48+ var prefix = el . prefix ;
49+
50+ var previousElementSibling = el . previousElementSibling ;
51+
52+ var scrollHeight = el . scrollHeight ;
53+
54+ var scrollLeft = el . scrollLeft ;
55+
1956el . scrollLeft = 0.0 ;
2057
58+ var scrollTop = el . scrollTop ;
59+
2160el . scrollTop = 0.0 ;
2261
62+ var scrollWidth = el . scrollWidth ;
63+
64+ var shadowRoot = el . shadowRoot ;
65+
66+ var slot = el . slot ;
67+
2368el . slot = "<strong>stuff</strong>" ;
2469
25- el . attachShadow ( {
70+ var tagName = el . tagName ;
71+
72+ var attachShadow = el . attachShadow ( {
2673 mode : "open"
2774 } ) ;
2875
29- el . attachShadow ( { "mode" : "open" } ) ;
76+ var attachShadowOpen = el . attachShadow ( { "mode" : "open" } ) ;
3077
31- el . attachShadow ( { "mode" : "closed" } ) ;
78+ var attachShadowClosed = el . attachShadow ( { "mode" : "closed" } ) ;
3279
33- el . animate ( {
80+ var animate = el . animate ( {
3481 transform : "translateT(0px)"
3582 } , {
3683 duration : 1000
3784 } ) ;
3885
39- el . closest ( "input" ) ;
86+ var closest = el . closest ( "input" ) ;
87+
88+ var getAttribute = el . getAttribute ( "href" ) ;
4089
41- el . getAttribute ( "href ") ;
90+ var getAttributeNS = el . getAttributeNS ( "http://..." , "foo ") ;
4291
43- el . getAttributeNS ( "http://..." , "foo" ) ;
92+ var getBoundingClientRect = el . getBoundingClientRect ( ) ;
4493
45- el . getBoundingClientRect ( ) ;
94+ var clientRects = el . getClientRects ( ) ;
4695
47- el . getClientRects ( ) . item ( 0 ) ;
96+ var getClientRectsItem = el . getClientRects ( ) . item ( 0 ) ;
4897
49- Array . prototype . slice . call ( el . getClientRects ( ) ) ;
98+ var getClientRectsArray = Array . prototype . slice . call ( el . getClientRects ( ) ) ;
5099
51- el . getElementsByClassName ( "some-class-name" ) ;
100+ var getElementsByClassName = el . getElementsByClassName ( "some-class-name" ) ;
52101
53- el . getElementsByTagName ( "pre" ) ;
102+ var getElementsByTagName = el . getElementsByTagName ( "pre" ) ;
54103
55- el . getElementsByTagNameNS ( "http://..." , "td" ) ;
104+ var getElementsByTagNameNS = el . getElementsByTagNameNS ( "http://..." , "td" ) ;
56105
57- el . hasAttribute ( "data-my-value" ) ;
106+ var hasAttribute = el . hasAttribute ( "data-my-value" ) ;
58107
59- el . hasAttributeNS ( "http://..." , "foo" ) ;
108+ var hasAttributeNS = el . hasAttributeNS ( "http://..." , "foo" ) ;
60109
61- el . hasAttributes ( ) ;
110+ var hasAttributes = el . hasAttributes ( ) ;
62111
63- Webapi__Dom__Element . insertAdjacentElement ( el , /* BeforeBegin */ 0 , el2 ) ;
112+ var insertAdjacentElement = Webapi__Dom__Element . insertAdjacentElement ( el , /* BeforeBegin */ 0 , el2 ) ;
64113
65- Webapi__Dom__Element . insertAdjacentHTML ( el , /* AfterBegin */ 1 , "<strong>text</strong>" ) ;
114+ var insertAdjacentHTML = Webapi__Dom__Element . insertAdjacentHTML ( el , /* AfterBegin */ 1 , "<strong>text</strong>" ) ;
66115
67- Webapi__Dom__Element . insertAdjacentText ( el , /* AfterEnd */ 3 , "text" ) ;
116+ var insertAdjacentText = Webapi__Dom__Element . insertAdjacentText ( el , /* AfterEnd */ 3 , "text" ) ;
68117
69- el . matches ( "input" ) ;
118+ var matches = el . matches ( "input" ) ;
70119
71- el . querySelector ( "input" ) ;
120+ var querySelector = el . querySelector ( "input" ) ;
72121
73- el . querySelectorAll ( "input" ) ;
122+ var querySelectorAll = el . querySelectorAll ( "input" ) ;
74123
75124el . releasePointerCapture ( $$event . pointerId ) ;
76125
@@ -99,7 +148,130 @@ el.setAttributeNS("http://...", "foo", "bar");
99148
100149el . setPointerCapture ( $$event . pointerId ) ;
101150
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+
102209exports . el = el ;
103210exports . el2 = el2 ;
104211exports . $$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 ;
105277/* el Not a pure module */
0 commit comments