Text
The Text interface represents the textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children.
Documentation Text by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
Instance Members
wholeText: StringReturns a DOMString containing the text of all Text nodes logically adjacent to this Node, concatenated in document order.
| Name | Type |
|---|---|
offset |
Int |
| Returns |
|---|
| Text |
convertQuadFromNode(quad: DOMQuad, from: Text, ?options: Null<ConvertCoordinateOptions>): DOMQuad| Name | Type | Default |
|---|---|---|
quad |
DOMQuad | |
from |
Text | |
options |
Null<ConvertCoordinateOptions> | (optional) |
| Returns |
|---|
| DOMQuad |
convertRectFromNode(rect: DOMRectReadOnly, from: Text, ?options: Null<ConvertCoordinateOptions>): DOMQuad| Name | Type | Default |
|---|---|---|
rect |
DOMRectReadOnly | |
from |
Text | |
options |
Null<ConvertCoordinateOptions> | (optional) |
| Returns |
|---|
| DOMQuad |
convertPointFromNode(point: DOMPointInit, from: Text, ?options: Null<ConvertCoordinateOptions>): DOMPoint| Name | Type | Default |
|---|---|---|
point |
DOMPointInit | |
from |
Text | |
options |
Null<ConvertCoordinateOptions> | (optional) |
| Returns |
|---|
| DOMPoint |
| Name | Type | Default |
|---|---|---|
data |
String | "" |