function getElementsByTagName(element, name) {
  return Array.from(genericMethodCall(
      Methods.GET_ELEMENTS_BY_TAG_NAME, element, 'getElementsByTagName',
      [name]));
}
function getElementsByTagName(element, name) {
  return Array.from(genericMethodCall(
      Methods.GET_ELEMENTS_BY_TAG_NAME, element, 'getElementsByTagName',
      [name]));
}
function getElementsByTagName ( element , name ) { return Array . from ( genericMethodCall ( Methods . GET_ELEMENTS_BY_TAG_NAME , element , 'getElementsByTagName' , [ name ] ) ) ; }
Get the children of a specific tag matching the provided tag name without
falling prey to things like <form><input name="getElementsByTagName"></form>.
Equivalent to {@code element.getElementsByTagName("foo")}.
@param {!Element} element
@param {string} name
@return {!Array<!Element>}
Get the children of a specific tag matching the provided tag name without falling prey to things like <form > <input name = getElementsByTagName > < / form > . Equivalent to {
Get all elements by tag name