mirror of
https://github.com/bendtherules/UiQuestions.git
synced 2026-08-18 13:52:50 +00:00
element-properties - Clarify desc for .innerText
This commit is contained in:
@@ -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 -**
|
||||||
|
|||||||
Reference in New Issue
Block a user