{{APIRef("DOM")}}{{ obsolete_header("10.0") }}
Note: Although this interface was previously implemented in Gecko, there was no way to actually create one. NameList has been removed effective with {{ Gecko("10.0") }}
Provides an abstraction for an ordered collection of name and namespace value pairs. Items can be accessed by a 0-based index. The DOM spec does not specify how the collection is to be implemented.
Properties
- {{domxref("NameList.length")}}{{readonlyInline}}
Methods
- {{domxref("NameList.contains()")}}
- Returns a {{jsxref("Boolean")}}.
- {{domxref("NameList.containsNS()")}}
- Returns a {{jsxref("Boolean")}}
- {{domxref("NameList.getName()")}}
- Returns a {{domxref("DOMString")}}
- {{domxref("NameList.getNamespaceURI()")}}
- Returns a {{domxref("DOMString")}}
Specifications
Specification | Status | Comment |
---|---|---|
{{SpecName("DOM3 Core", "core.html#NameList", "NameList")}} | {{Spec2("DOM3 Core")}} | Initial definition |