mirror of
https://github.com/bendtherules/UiQuestions.git
synced 2026-08-18 13:52:50 +00:00
element-child-content - In notes, add space between code signature and desc
This commit is contained in:
@@ -119,6 +119,7 @@ This property is also available on `Document` and `DocumentFragment`.
|
|||||||
:::note Counting number of child elements
|
:::note Counting number of child elements
|
||||||
|
|
||||||
`Element.childElementCount: number`
|
`Element.childElementCount: number`
|
||||||
|
|
||||||
It returns the **number of child elements** of the given element. This is equivalent to `ele.children.length` value.
|
It returns the **number of child elements** of the given element. This is equivalent to `ele.children.length` value.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
@@ -155,6 +156,7 @@ This property is available on all types of `Node` - like Element, text node, etc
|
|||||||
:::note Check if there is any child node
|
:::note Check if there is any child node
|
||||||
|
|
||||||
`Node.hasChildNodes() : boolean`
|
`Node.hasChildNodes() : boolean`
|
||||||
|
|
||||||
This method checks whether the given node **has child nodes or not** and returns a boolean value. This is equivalent to checking `node.childNodes.length > 0`.
|
This method checks whether the given node **has child nodes or not** and returns a boolean value. This is equivalent to checking `node.childNodes.length > 0`.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|||||||
Reference in New Issue
Block a user