Definition
DOM Standard defines Text
Text includes Slottable;
[Exposed=Window]
interface Text : CharacterData {
constructor(optional DOMString data = "");
[NewObject] Text splitText(unsigned long offset);
readonly attribute DOMString wholeText;
};
This interface is extended in the following specifications:
- CSSOM View Module
Text includes GeometryUtils;
Consolidated IDL (across mixin and partials)
[Exposed=Window]
interface Text : CharacterData {
constructor(optional DOMString data = "");
[NewObject] Text splitText(unsigned long offset);
readonly attribute DOMString wholeText;
readonly attribute HTMLSlotElement? assignedSlot;
sequence<DOMQuad> getBoxQuads(optional BoxQuadOptions options = {});
DOMQuad convertQuadFromNode(DOMQuadInit quad, GeometryNode from, optional ConvertCoordinateOptions options = {});
DOMQuad convertRectFromNode(DOMRectReadOnly rect, GeometryNode from, optional ConvertCoordinateOptions options = {});
DOMPoint convertPointFromNode(DOMPointInit point, GeometryNode from, optional ConvertCoordinateOptions options = {});
};
Methods and attributes that return objects implementing Text
Referring IDL interfaces/dictionaries
Referring specifications
- HTML Standard refers to
Text
- CSSOM View Module refers to
Text