Skip to content

Commit a363b4a

Browse files
committed
Deprecate two-argument overload of HTMLCollection.item.
The single-argument version inherited from DOMList is correct. See https://dom.spec.whatwg.org/#htmlcollection
1 parent d36cb7c commit a363b4a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/scala/org/scalajs/dom/raw/Html.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,6 +1310,7 @@ abstract class HTMLCollection extends DOMList[Element] {
13101310
*
13111311
* MDN
13121312
*/
1313+
@deprecated("Non-standard.", "forever")
13131314
def item(nameOrIndex: js.Any = js.native,
13141315
optionalIndex: js.Any = js.native): Element = js.native
13151316

0 commit comments

Comments
 (0)