element-child-content - In notes, add space between code signature and desc

This commit is contained in:
2020-11-08 18:48:46 +05:30
parent 539724e709
commit 05fa204900
+2
View File
@@ -119,6 +119,7 @@ This property is also available on `Document` and `DocumentFragment`.
:::note Counting number of child elements
`Element.childElementCount: number`
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
`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`.
:::