View source
class Text
package js.html
extends CharacterData › Node › EventTarget
extended by CDATASection
Available on js
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 also:
Constructor
Variables
Methods
convertPointFromNode(point:DOMPointInit, from:Text, ?options:ConvertCoordinateOptions):DOMPoint
convertPointFromNode(point:DOMPointInit, from:Element, ?options:ConvertCoordinateOptions):DOMPoint
convertPointFromNode(point:DOMPointInit, from:HTMLDocument, ?options:ConvertCoordinateOptions):DOMPoint
Throws:
null | DOMError |
---|
convertQuadFromNode(quad:DOMQuad, from:Text, ?options:ConvertCoordinateOptions):DOMQuad
convertQuadFromNode(quad:DOMQuad, from:Element, ?options:ConvertCoordinateOptions):DOMQuad
convertQuadFromNode(quad:DOMQuad, from:HTMLDocument, ?options:ConvertCoordinateOptions):DOMQuad
Throws:
null | DOMError |
---|
convertRectFromNode(rect:DOMRectReadOnly, from:Text, ?options:ConvertCoordinateOptions):DOMQuad
convertRectFromNode(rect:DOMRectReadOnly, from:Element, ?options:ConvertCoordinateOptions):DOMQuad
convertRectFromNode(rect:DOMRectReadOnly, from:HTMLDocument, ?options:ConvertCoordinateOptions):DOMQuad
Throws:
null | DOMError |
---|