element-properties - Fix typo

This commit is contained in:
2020-10-31 10:20:08 +05:30
parent 5e0d35cd69
commit 38d6f05583
+2 -2
View File
@@ -101,11 +101,11 @@ for (let i = 0; i < children.length; i++) {
<MDN title="children" url="https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/children" />
### 2. .childNodes
### 3. .childNodes
`Element.childNodes: NodeList`
This read-only property returns a live `NodeList` containing all the **child nodes** of the current element, including text nodes. If there are no child elements, it returns a empty NodeList.
This read-only property returns a live `NodeList` containing all the **child nodes** of the current element, including text nodes. If there are no child nodes, it returns a empty NodeList.
This property is available on all types of `Node` - like Element, text node, etc.