#pattern
* The * interface
#ja
$1 $2 界面
#en
The HTMLCollection interface
represents a generic collection of elements.
#ja
HTMLCollection
界面は、一般的な要素の集成を表します。
#en
The length attribute must
return the number of nodes represented by the
collection.
#ja
length
属性は集成が表現する節点の数を返さなければ[[MUST:なりません]]。
#en
The item(index) method must return the indexth node in the collection. If there is no indexth node in the collection, then the method must return
null.
#ja
item(index) メソッドは集成中の index 番目の節点を返さなければ[[MUST:なりません]]。
集成中の index 番目の節点が存在しない場合は、
メソッドは null を返さなければなりません。
#en
The namedItem(key) method must return the first node in the
collection that matches the following requirements:
#ja
namedItem(key) メソッドは集成中で次のいずれかの要件に一致する最初の節点を返さなければ[[MUST:なりません]]:
#en
It is an a, applet, area,
form, img, or object element with a name attribute equal to key,
or,
#ja
a、applet、area、
form、 img、 object のいずれかの要素であって、 name 属性が key
と等しいもの
#en
It is an HTML
element of any kind with an id attribute equal to key.
(Non-HTML elements, even if they have IDs, are not searched for the
purposes of namedItem().)
#ja
任意の種類の HTML
要素であって、 id 属性が key
と等しいもの。 (非 HTML 要素は、 ID を有していたとしても、
namedItem() では検索されません。)
#en
If no such elements are found, then the method must return null.
#ja
そのような要素が存在しない場合、メソッドは null
を返さなければ[[MUST:なりません]]。
#en
The HTMLFormControlsCollection
interface represents a collection of form controls.
#ja
HTMLFormControlsCollection
界面はフォーム制御子の集成を表します。
#en
The length
attribute must return the number of nodes represented by the collection.
#ja
length
属性は集成が表現する節点の数を返さなければ[[MUST:なりません]]。
#en
The item(index) method must return the indexth node in the collection. If there is no indexth node in the collection, then the method must return
null.
#ja
item(index) メソッドは集成中の index 番目の節点を返さなければ[[MUST:なりません]]。集成中に
index 番目の節点が存在しなければ、メソッドは null
を返さなければなりません。
#en
The namedItem(key) method must act according to the
following algorithm:
#ja
namedItem(key) メソッドは次の算法に従って動作しなければ[[MUST:なりません]]。
#en
If, at the time the method is called, there is exactly one node in the
collection that has either an id attribute or a name
attribute equal to key, then return that node and
stop the algorithm.
#ja
メソッド呼び出しの時点において、集成中に id 属性または name
属性のいずれかが key と等しい節点が丁度1つ存在するなら、
その節点を返し、算法を停止します。
#en
Otherwise, if there are no nodes in the collection that have either an
id attribute or a name attribute equal to key,
then return null and stop the algorithm.
#ja
それ以外の場合で、集成中に id
属性または name 属性が key
と等しい節点が存在しない場合は、 null を返し、算法を停止します。
#en
Otherwise, create a NodeList object representing a live
view of the HTMLFormControlsCollection
object, further filtered so that the only nodes in the
NodeList object are those that have either an id attribute or a name attribute equal to key.
The nodes in the NodeList object must be sorted in tree order.
#ja
それ以外の場合、その HTMLFormControlsCollection
オブジェクトの生きた表示であって、 id 属性または name 属性のいずれかが key
と等しい節点だけが含まれるような NodeList
オブジェクトを作成します。この NodeList
オブジェクトに含まれる節点は木順で整列されていなければ[[MUST:なりません]]。
#en
Return that NodeList object.
#ja
その NodeList オブジェクトを返します。