You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/DOMAPI.res
+19-29Lines changed: 19 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -2663,7 +2663,7 @@ Element is the most general base class from which all objects in a Document inhe
2663
2663
Returns the child elements.
2664
2664
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/children)
2665
2665
*/
2666
-
children: htmlCollection,
2666
+
children: htmlCollection<element>,
2667
2667
/**
2668
2668
Returns the first child that is an element, and null otherwise.
2669
2669
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/firstElementChild)
@@ -3001,24 +3001,14 @@ Similarly, when the focused element is in a different node tree than documentOrS
3001
3001
A generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list.
3002
3002
[See HTMLCollection on MDN](https://developer.mozilla.org/docs/Web/API/HTMLCollection)
Sets or retrieves the number of objects in a collection.
3007
3007
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLCollection/length)
3008
3008
*/
3009
3009
length: int,
3010
3010
}
3011
3011
3012
-
andhtmlCollectionOf<'t> = {
3013
-
// Base properties from HTMLCollection
3014
-
/**
3015
-
Sets or retrieves the number of objects in a collection.
3016
-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLCollection/length)
3017
-
*/
3018
-
length: int,
3019
-
// End base properties from HTMLCollection
3020
-
}
3021
-
3022
3012
/**
3023
3013
A collection of HTML form control elements.
3024
3014
[See HTMLFormControlsCollection on MDN](https://developer.mozilla.org/docs/Web/API/HTMLFormControlsCollection)
@@ -5808,32 +5798,32 @@ If the contents are sandboxed into a unique origin (e.g. in an iframe with the s
5808
5798
Retrieves a collection, in source order, of img objects in the document.
5809
5799
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/images)
5810
5800
*/
5811
-
images: htmlCollectionOf<htmlImageElement>,
5801
+
images: htmlCollection<htmlImageElement>,
5812
5802
/**
5813
5803
Retrieves a collection of all embed objects in the document.
5814
5804
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/embeds)
5815
5805
*/
5816
-
embeds: htmlCollectionOf<htmlEmbedElement>,
5806
+
embeds: htmlCollection<htmlEmbedElement>,
5817
5807
/**
5818
5808
Return an HTMLCollection of the embed elements in the Document.
5819
5809
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/plugins)
5820
5810
*/
5821
-
plugins: htmlCollectionOf<htmlEmbedElement>,
5811
+
plugins: htmlCollection<htmlEmbedElement>,
5822
5812
/**
5823
5813
Retrieves a collection of all a objects that specify the href property and all area objects in the document.
5824
5814
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/links)
5825
5815
*/
5826
-
links: htmlCollectionOf<any>,
5816
+
links: htmlCollection<element>,
5827
5817
/**
5828
5818
Retrieves a collection, in source order, of all form objects in the document.
5829
5819
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/forms)
5830
5820
*/
5831
-
forms: htmlCollectionOf<htmlFormElement>,
5821
+
forms: htmlCollection<htmlFormElement>,
5832
5822
/**
5833
5823
Retrieves a collection of all script objects in the document.
5834
5824
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/scripts)
5835
5825
*/
5836
-
scripts: htmlCollectionOf<htmlScriptElement>,
5826
+
scripts: htmlCollection<htmlScriptElement>,
5837
5827
/**
5838
5828
Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing.
5839
5829
@@ -5910,7 +5900,7 @@ Similarly, when the focused element is in a different node tree than documentOrS
5910
5900
Returns the child elements.
5911
5901
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/children)
5912
5902
*/
5913
-
children: htmlCollection,
5903
+
children: htmlCollection<element>,
5914
5904
/**
5915
5905
Returns the first child that is an element, and null otherwise.
5916
5906
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/firstElementChild)
@@ -6453,7 +6443,7 @@ A minimal document object that has no parent. It is used as a lightweight versio
6453
6443
Returns the child elements.
6454
6444
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/children)
6455
6445
*/
6456
-
children: htmlCollection,
6446
+
children: htmlCollection<element>,
6457
6447
/**
6458
6448
Returns the first child that is an element, and null otherwise.
6459
6449
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/firstElementChild)
@@ -7383,12 +7373,12 @@ type rec htmlTableElement = {
7383
7373
Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order.
7384
7374
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tBodies)
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.
144
145
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/getElementsByClassName)
0 commit comments