A type returned by some APIs which contains a list of DOMString (strings).

Properties

DOMStringList.length Read only
Returns the length of the list,

Methods

DOMStringList.item()
Returns a DOMString.
DOMStringList.contains()
Returns Boolean indicating if the given string is in the list

Specifications

Specification Status Comment
HTML Living Standard
The definition of 'DOMStringList' in that specification.
Living Standard Initial specification

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support Yes Yes Yes Yes Yes Yes
length Yes Yes Yes Yes Yes Yes
contains Yes Yes Yes Yes Yes Yes
item Yes Yes Yes Yes Yes Yes
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support Yes Yes Yes Yes Yes Yes ?
length Yes Yes Yes Yes Yes Yes ?
contains Yes Yes Yes Yes Yes Yes ?
item Yes Yes Yes Yes Yes Yes ?

Document Tags and Contributors

Last updated by: connorshea,