HTMLCollection

@native @JSGlobal @JSType
abstract class HTMLCollection[+E] extends DOMList[E]

HTMLCollection is an interface representing a generic collection of elements (in document order) and offers methods and properties for traversing the list.

trait DOMList[E]
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

def item(index: Int): E
def namedItem(name: String): E

Returns the specific node whose ID or, as a fallback, name matches the string specified by name. Matching by name is only done as a last resort, only in HTML, and only if the referenced element supports the name attribute. Returns null if no node exists by the given name.

Returns the specific node whose ID or, as a fallback, name matches the string specified by name. Matching by name is only done as a last resort, only in HTML, and only if the referenced element supports the name attribute. Returns null if no node exists by the given name.

Inherited methods

@JSBracketAccess
def apply(index: Int): E
Inherited from:
DOMList
def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object
def length: Int
Inherited from:
DOMList
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def toLocaleString(): String
Inherited from:
Object
def valueOf(): Any
Inherited from:
Object