element-properties - Clarify desc for .innerText

This commit is contained in:
2020-11-08 13:30:01 +05:30
parent 6fe7a85cd2
commit 21cfb547f9
+2 -3
View File
@@ -236,10 +236,9 @@ traverse(root.firstChild)
`Element.innerText: string [= value]` `Element.innerText: string [= value]`
Returns the element's **text content "as rendered"**. Returns the **text content** of the element and its descendants **"as rendered"**.
Can be set, to **replace the element's children** with the given string. Can be set, to **replace the element's children** with the given string. It creates a *text node* for every normal text range, but replaces each line break with a `<br/>` element.
It adds a *text node* for the normal text ranges, but replaces line breaks with `<br/>` elements.
**Example 1 -** **Example 1 -**