--- title: NameList slug: orphaned/Web/API/NameList translation_of: Web/API/NameList original_slug: Web/API/NameList ---

{{APIRef("DOM")}}{{ obsolete_header("10.0") }}

Note: 虽然这个API曾经被用在 Gecko, 事实上它也是没有办法被创建的. NameList从 {{ Gecko("10.0") }}开始已经被废弃了。

提供一个有序的键值对集合. 它可以通过下标0访问. 在DOM规范中没有指定这个集合是如何被应用的.

属性

{{domxref("NameList.length")}}{{readonlyInline}}

方法

{{domxref("NameList.contains()")}}
返回{{jsxref("Boolean")}}.
{{domxref("NameList.containsNS()")}}
返回 {{jsxref("Boolean")}}
{{domxref("NameList.getName()")}}
返回{{domxref("DOMString")}}
{{domxref("NameList.getNamespaceURI()")}}
返回 {{domxref("DOMString")}}

Specifications

Specification Status Comment
{{SpecName("DOM3 Core", "core.html#NameList", "NameList")}} {{Spec2("DOM3 Core")}} Initial definition