{{APIRef("DOM")}}{{Obsolete_header}}
A type returned by some APIs which contains a list of DOMString (strings).
Properties
- {{domxref("DOMStringList.length")}} {{ReadOnlyInline}}
- Returns the length of the list,
Methods
- {{domxref("DOMStringList.item()")}}
- Returns a {{domxref("DOMString")}}.
- {{domxref("DOMStringList.contains()")}}
- Returns {{jsxref("Boolean")}} indicating if the given string is in the list
Specifications
Specification | Status | Comment |
---|---|---|
{{SpecName("DOM3 Core", "core.html#DOMStringList", "DOMStringList")}} | {{Spec2("DOM3 Core")}} | Initial specification |