
Text
JavaScript Pocket Reference
|
119
Text
a run of text in a document
DOM Level 1
Inherits From: Node
Description
A Text object represents a run of plain text without markup in a
DOM document tree. Do not confuse it with the single-line text
input element of HTML, which is represented by the Input object.
Properties
data
The string of text contained by this node.
length
The number of characters contained by this node. Read-only.
borderCollapse fontStretch page
borderColor fontStyle pageBreakAfter
borderLeft fontVariant pageBreakBefore
borderLeftColor fontWeight pageBreakInside
borderLeftStyle height position
borderLeftWidth left quotes
borderRight letterSpacing right
borderRightColor lineHeight size
borderRightStyle listStyle tableLayout
borderRightWidth listStyleImage textAlign
borderSpacing listStylePosition textDecoration
borderStyle listStyleType textIndent
borderTop margin textShadow
borderTopColor marginBottom textTransform
borderTopStyle marginLeft top
borderTopWidth marginRight unicodeBidi
borderWidth marginTop verticalAlign
bottom markerOffset visibility
captionSide marks whiteSpace
clear maxHeight widows
clip maxWidth width
color minHeight wordSpacing
content minWidth zIndex