@@ -138,17 +138,14 @@ class HTMLTableElement extends HTMLElement {
138
138
* MDN
139
139
*/
140
140
var border : js.String = ???
141
-
142
- def deleteRow (index : js.Number ): Unit = ???
143
-
144
141
/**
145
142
* Removes the row corresponding to the index given in parameter. If the index value is
146
143
* -1 the last row is removed; if it smaller than -1 or greater than the amount of rows in
147
144
* the collection, a DOMException with the value IndexSizeError is raised.
148
145
*
149
146
* MDN
150
147
*/
151
- def deleteRow (): Unit = ???
148
+ def deleteRow (index : js. Number = ??? ): Unit = ???
152
149
153
150
def createTBody (): HTMLElement = ???
154
151
@@ -158,9 +155,6 @@ class HTMLTableElement extends HTMLElement {
158
155
* MDN
159
156
*/
160
157
def deleteCaption (): Unit = ???
161
-
162
- def insertRow (index : js.Number ): HTMLElement = ???
163
-
164
158
/**
165
159
* Returns an HTMLElement representing a new row of the table. It inserts it in the rows
166
160
* collection immediately before the <tr> element at the givent index position. If
@@ -170,7 +164,9 @@ class HTMLTableElement extends HTMLElement {
170
164
*
171
165
* MDN
172
166
*/
173
- def insertRow (): HTMLElement = ???
167
+ def insertRow (index : js.Number = ??? ): HTMLElement = ???
168
+
169
+
174
170
175
171
/**
176
172
* Removes the first <tfoot> that is a child of the element.
@@ -205,11 +201,7 @@ class HTMLTableElement extends HTMLElement {
205
201
*/
206
202
def createCaption (): HTMLElement = ???
207
203
208
- def moveRow (indexFrom : js.Number , indexTo : js.Number ): Object = ???
209
-
210
- def moveRow (indexFrom : js.Number ): Object = ???
211
-
212
- def moveRow (): Object = ???
204
+ def moveRow (indexFrom : js.Number = ??? , indexTo : js.Number = ??? ): Object = ???
213
205
214
206
/**
215
207
* Returns an HTMLElement representing the first <tfoot> that is a child of the
@@ -282,13 +274,9 @@ class HTMLParagraphElement extends HTMLElement {
282
274
283
275
284
276
trait HTMLAreasCollection extends HTMLCollection {
285
- def remove (index : js.Number ): Unit = ???
286
-
287
- def remove (): Unit = ???
288
-
289
- def add (element : HTMLElement , before : js.Any ): Unit = ???
277
+ def remove (index : js.Number = ??? ): Unit = ???
290
278
291
- def add (element : HTMLElement ): Unit = ???
279
+ def add (element : HTMLElement , before : js. Any = ??? ): Unit = ???
292
280
}
293
281
294
282
class HTMLAppletElement extends HTMLElement {
@@ -393,31 +381,21 @@ class HTMLSelectElement extends HTMLElement {
393
381
*/
394
382
var multiple : js.Boolean = ???
395
383
var `type` : js.String = ???
396
-
397
- def remove (index : js.Number ): Unit = ???
398
-
399
384
/**
400
385
* Removes the element at the specified index from the options collection for this
401
386
* select element.
402
387
*
403
388
* MDN
404
389
*/
405
- def remove (): Unit = ???
406
-
407
- def add (element : HTMLElement , before : js.Any ): Unit = ???
408
-
390
+ def remove (index : js.Number = ??? ): Unit = ???
409
391
/**
410
392
* Adds an element to the collection of option elements for this select element.
411
393
*
412
394
* MDN
413
395
*/
414
- def add (element : HTMLElement ): Unit = ???
415
-
416
- def item (name : js.Any , index : js.Any ): js.Dynamic = ???
396
+ def add (element : HTMLElement , before : js.Any = ??? ): Unit = ???
417
397
418
- def item (name : js.Any ): js.Dynamic = ???
419
-
420
- def item (): js.Dynamic = ???
398
+ def item (name : js.Any = ??? , index : js.Any = ??? ): js.Dynamic = ???
421
399
422
400
def namedItem (name : js.String ): js.Dynamic = ???
423
401
@@ -696,18 +674,14 @@ class HTMLCollection extends js.Object {
696
674
* MDN
697
675
*/
698
676
var length : js.Number = ???
699
-
700
- def item (nameOrIndex : js.Any , optionalIndex : js.Any ): Element = ???
701
-
702
- def item (nameOrIndex : js.Any ): Element = ???
703
-
704
677
/**
705
678
* Returns the specific node at the given zero-based index into the list. Returns null
706
679
* if the index is out of range.
707
680
*
708
681
* MDN
709
682
*/
710
- def item (): Element = ???
683
+ def item (nameOrIndex : js.Any = ??? , optionalIndex : js.Any = ??? ): Element = ???
684
+
711
685
712
686
/**
713
687
* Returns the specific node whose ID or, as a fallback, name matches the string
@@ -822,9 +796,6 @@ class HTMLImageElement extends HTMLElement {
822
796
823
797
def create (): HTMLImageElement = ???
824
798
825
- var msPlayToPrimary : js.Boolean = ???
826
- var msPlayToDisabled : js.Boolean = ???
827
- var msPlayToSource : js.Any = ???
828
799
}
829
800
830
801
/**
@@ -1154,20 +1125,14 @@ class HTMLTableRowElement extends HTMLElement with HTMLTableAlignment {
1154
1125
var borderColor : js.Any = ???
1155
1126
var height : js.Any = ???
1156
1127
var borderColorDark : js.Any = ???
1157
-
1158
- def deleteCell (index : js.Number ): Unit = ???
1159
-
1160
1128
/**
1161
1129
* Removes the cell at the given position in the row. If the given position is greater
1162
1130
* (or equal as it starts at zero) than the amount of cells in the row, or is smaller than
1163
1131
* 0, it raises a DOMException with the IndexSizeError value.
1164
1132
*
1165
1133
* MDN
1166
1134
*/
1167
- def deleteCell (): Unit = ???
1168
-
1169
- def insertCell (index : js.Number ): HTMLElement = ???
1170
-
1135
+ def deleteCell (index : js.Number = ??? ): Unit = ???
1171
1136
/**
1172
1137
* Inserts a new cell just before the given position in the row. If the given position is
1173
1138
* not given or is -1, it appends the cell to the row. If the given position is greater (or
@@ -1176,7 +1141,7 @@ class HTMLTableRowElement extends HTMLElement with HTMLTableAlignment {
1176
1141
*
1177
1142
* MDN
1178
1143
*/
1179
- def insertCell (): HTMLElement = ???
1144
+ def insertCell (index : js. Number = ??? ): HTMLElement = ???
1180
1145
}
1181
1146
1182
1147
/**
@@ -1543,27 +1508,20 @@ class HTMLTableSectionElement extends HTMLElement with HTMLTableAlignment {
1543
1508
* MDN
1544
1509
*/
1545
1510
var rows : HTMLCollection = ???
1546
-
1547
- def deleteRow (index : js.Number ): Unit = ???
1548
-
1549
1511
/**
1550
1512
* Removes the cell at the given position in the section. If the given position is
1551
1513
* greater (or equal as it starts at zero) than the amount of rows in the section, or is
1552
1514
* smaller than 0, it raises a DOMException with the IndexSizeError value.
1553
1515
*
1554
1516
* MDN
1555
1517
*/
1556
- def deleteRow (): Unit = ???
1557
-
1558
- def moveRow (indexFrom : js.Number , indexTo : js.Number ): Object = ???
1518
+ def deleteRow (index : js.Number = ??? ): Unit = ???
1559
1519
1560
- def moveRow (indexFrom : js.Number ): Object = ???
1520
+ def moveRow (indexFrom : js.Number = ??? , indexTo : js. Number = ??? ): Object = ???
1561
1521
1562
- def moveRow (): Object = ???
1563
1522
1564
- def insertRow (index : js.Number ): HTMLElement = ???
1523
+ def insertRow (index : js.Number = ??? ): HTMLElement = ???
1565
1524
1566
- def insertRow (): HTMLElement = ???
1567
1525
}
1568
1526
1569
1527
/**
@@ -1899,9 +1857,6 @@ class HTMLInputElement extends HTMLElement {
1899
1857
* MDN
1900
1858
*/
1901
1859
def checkValidity (): js.Boolean = ???
1902
-
1903
- def stepDown (n : js.Number ): Unit = ???
1904
-
1905
1860
/**
1906
1861
* Decrements the value by (step * n), where n defaults to 1 if not specified. Throws an
1907
1862
* INVALID_STATE_ERR exception: if the method is not applicable to for the current
@@ -1910,9 +1865,7 @@ class HTMLInputElement extends HTMLElement {
1910
1865
*
1911
1866
* MDN
1912
1867
*/
1913
- def stepDown (): Unit = ???
1914
-
1915
- def stepUp (n : js.Number ): Unit = ???
1868
+ def stepDown (n : js.Number = ??? ): Unit = ???
1916
1869
1917
1870
/**
1918
1871
* Increments the value by (step * n), where n defaults to 1 if not specified. Throws an
@@ -1922,7 +1875,7 @@ class HTMLInputElement extends HTMLElement {
1922
1875
*
1923
1876
* MDN
1924
1877
*/
1925
- def stepUp (): Unit = ???
1878
+ def stepUp (n : js. Number = ??? ): Unit = ???
1926
1879
1927
1880
/**
1928
1881
* Sets a custom validity message for the element. If this message is not the empty
@@ -3156,15 +3109,11 @@ class HTMLElement extends Element {
3156
3109
3157
3110
def dragDrop (): js.Boolean = ???
3158
3111
3159
- def scrollIntoView (top : js.Boolean ): Unit = ???
3160
-
3161
- def scrollIntoView (): Unit = ???
3112
+ def scrollIntoView (top : js.Boolean = ??? ): Unit = ???
3162
3113
3163
3114
def addFilter (filter : Object ): Unit = ???
3164
3115
3165
- def setCapture (containerCapture : js.Boolean ): Unit = ???
3166
-
3167
- def setCapture (): Unit = ???
3116
+ def setCapture (containerCapture : js.Boolean = ??? ): Unit = ???
3168
3117
3169
3118
/**
3170
3119
* Sets focus on the specified element, if it can be focused.
@@ -3207,19 +3156,13 @@ class HTMLElement extends Element {
3207
3156
3208
3157
def insertAdjacentElement (position : js.String , insertedElement : Element ): Element = ???
3209
3158
3210
- def mergeAttributes (source : HTMLElement , preserveIdentity : js.Boolean ): Unit = ???
3211
-
3212
- def mergeAttributes (source : HTMLElement ): Unit = ???
3159
+ def mergeAttributes (source : HTMLElement , preserveIdentity : js.Boolean = ??? ): Unit = ???
3213
3160
3214
3161
def replaceAdjacentText (where : js.String , newText : js.String ): js.String = ???
3215
3162
3216
- def applyElement (apply : Element , where : js.String ): Element = ???
3217
-
3218
- def applyElement (apply : Element ): Element = ???
3163
+ def applyElement (apply : Element , where : js.String = ??? ): Element = ???
3219
3164
3220
- def addBehavior (bstrUrl : js.String , factory : js.Any ): js.Number = ???
3221
-
3222
- def addBehavior (bstrUrl : js.String ): js.Number = ???
3165
+ def addBehavior (bstrUrl : js.String , factory : js.Any = ??? ): js.Number = ???
3223
3166
3224
3167
def insertAdjacentHTML (where : js.String , html : js.String ): Unit = ???
3225
3168
@@ -3740,19 +3683,14 @@ class HTMLFormElement extends HTMLElement {
3740
3683
* MDN
3741
3684
*/
3742
3685
def reset (): Unit = ???
3743
-
3744
- def item (name : js.Any , index : js.Any ): js.Dynamic = ???
3745
-
3746
- def item (name : js.Any ): js.Dynamic = ???
3747
-
3748
3686
/**
3749
3687
* Gets the item in the elements collection at the specified index, or null if there is
3750
3688
* no item at that index. You can also specify the index in array-style brackets or
3751
3689
* parentheses after the form object name, without calling this method explicitly.
3752
3690
*
3753
3691
* MDN
3754
3692
*/
3755
- def item (): js.Dynamic = ???
3693
+ def item (name : js. Any = ??? , index : js. Any = ??? ): js.Dynamic = ???
3756
3694
3757
3695
/**
3758
3696
* This method does something similar to activating a submit button of the form.
0 commit comments