[Edge]。読取専用。→、、
ParentNode のすべての子要素(ライブ内容)のリストを HTMLCollection で返します。
| ParentNode | ParentNode(Document、DocumentFragment、Element)。 |
|---|
生きた HTMLCollection オブジェクト。
HTML:
<SPAN id=IdTest>[SPAN要素<B id=IdTest2>[B要素]</B>テスト<I>[I要素<EM>[EM要素]</EM>]</I>終わり]</SPAN><BR>
JavaScript:
D=IdTest.children; //=[object]:[object HTMLCollection]
//0=[object]:[object HTMLElement]
//1=[object]:[object HTMLElement]
//length=[number]:2
//item=[function]:function item() { [native code] }
//namedItem=[function]:function namedItem() { [native code] }