Document: childElementCount プロパティ
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2018年4月.
Document.childElementCount
は読み取り専用のプロパティで、文書の子要素の数を返します。
特定の要素の子要素の数を取得する場合は、Element.childElementCount
を参照してください。