Closed asportnoy closed 9 months ago
Per MDN, document.getElementsByName should return a NodeList of all elements whose name attribute matches the input. This method is included in the type definition for document, but it is not actually implemented anywhere.
document.getElementsByName
NodeList
name
JSDOM's implementation of getElementsByName
no live collections here, use JSDOM if you want a 1:1 browser behavior or eel free to "polyfill" yourself that.
Per MDN,
document.getElementsByName
should return aNodeList
of all elements whosename
attribute matches the input. This method is included in the type definition for document, but it is not actually implemented anywhere.JSDOM's implementation of getElementsByName