[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ru/docs/Web/API/Text [Back]  [Original]

- API | MDN

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

Baseline Widely available *

This feature is well established and works across many devices and browser versions. Its been available across browsers since 2015 ..

* Some parts of this feature may have varying levels of support.

Text () Element Attr. , a single child (implementing) Text , . , , information items Text nodes , .

() Text node . , Text nodes, , . Node.normalize() Text a single node .

EventTarget Node CharacterData Text

In this article

Text()

Text node , .

Inherits properties from its parent, CharacterData.

Text.isElementContentWhitespace

Boolean, , ( ) text node ().

Text.wholeText

String, Text nodes Node, .

Text.assignedSlot

HTMLSlotElement, .

(included) Slotable

Text , Slotable.

Slotable.assignedSlot

HTMLSlotElement, <slot>, .

, CharacterData.

Text.replaceWholeText

(with the specified text).

Text.splitText

.

Specification
DOM
# interface-text

()


Web Proxy Viewer  |  New URL  |  Original Page