您正位於 MDN Web Docs 的可編輯版本

以 MDN Web Docs 使用者身分檢視: https://developer.mozilla.org/zh-TW/docs/Web/API/NameList

我們的志工尚未將本文翻譯為 正體中文 (繁體) 版本。加入我們,幫忙翻譯!
您也可以閱讀本文的 English (US) 版本。

Obsolete since Gecko 10.0 (Firefox 10.0 / Thunderbird 10.0 / SeaMonkey 2.7)
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

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

The NameList interface 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

NameList.length Read only

Methods

NameList.contains()
Returns a Boolean.
NameList.containsNS()
Returns a Boolean.
NameList.getName()
Returns a DOMString.
NameList.getNamespaceURI()
Returns a DOMString.

Specifications

Specification Status Comment
Document Object Model (DOM) Level 3 Core Specification
The definition of 'NameList' in that specification.
Obsolete Initial definition

文件標籤與貢獻者

標籤: 
最近更新: mdnwebdocs-bot,