Liking cljdoc? Tell your friends :D

web.Text

The Text interface represents the textual content of web.Element web.Attr. If an element has no markup within its content, it a single child implementing Text that contains the element's However, if the element contains markup, it is parsed into information and Text nodes that form its children.

The Text interface represents the textual content of `web.Element`
`web.Attr`. If an element has no markup within its content, it
a single child implementing Text that contains the element's
However, if the element contains markup, it is parsed into information
and Text nodes that form its children.
raw docstring

assigned-slotcljs

(assigned-slot this)

Property.

The assignedSlot property of the web.Text interface returns html.HTMLSlotElement object associated with the element.

var htmlSlotElement = text.assignedSlot

See also: https://developer.mozilla.org/en-US/docs/Web/API/Text/assignedSlot

Property.

The assignedSlot property of the `web.Text` interface returns
`html.HTMLSlotElement` object associated with the element.

`var htmlSlotElement = text.assignedSlot`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Text/assignedSlot`
sourceraw docstring

constructorcljs

Constructor.

The Text() constructor returns a newly created web.Text object with the optional dom.DOMString given in parameter as its textual content.

See also: https://developer.mozilla.org/en-US/docs/Web/API/Text/Text

Constructor.

The Text() constructor returns a newly created `web.Text` object with the optional `dom.DOMString` given in parameter as its textual content.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Text/Text`
sourceraw docstring

is-element-content-whitespacecljs

(is-element-content-whitespace this)

Property.

The Text.isElementContentWhitespace read-only property returns web.Boolean flag indicating whether or not the text node's consists solely of whitespace.

b = textnode.isElementContentWhitespace;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Text/isElementContentWhitespace

Property.

The Text.isElementContentWhitespace read-only property returns
`web.Boolean` flag indicating whether or not the text node's
consists solely of whitespace.

`b = textnode.isElementContentWhitespace;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Text/isElementContentWhitespace`
sourceraw docstring

replace-whole-textcljs

(replace-whole-text this content)

Method.

The Text.replaceWholeText() method replaces the text of the node all of its logically adjacent text nodes with the specified text. replaced nodes are removed, including the current node, unless was the recipient of the replacement text.

replacementNode = textnode.replaceWholeText(content)

See also: https://developer.mozilla.org/en-US/docs/Web/API/Text/replaceWholeText

Method.

The Text.replaceWholeText() method replaces the text of the node
all of its logically adjacent text nodes with the specified text.
replaced nodes are removed, including the current node, unless
was the recipient of the replacement text.

`replacementNode = textnode.replaceWholeText(content)`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Text/replaceWholeText`
sourceraw docstring

set-assigned-slot!cljs

(set-assigned-slot! this val)

Property.

The assignedSlot property of the web.Text interface returns html.HTMLSlotElement object associated with the element.

var htmlSlotElement = text.assignedSlot

See also: https://developer.mozilla.org/en-US/docs/Web/API/Text/assignedSlot

Property.

The assignedSlot property of the `web.Text` interface returns
`html.HTMLSlotElement` object associated with the element.

`var htmlSlotElement = text.assignedSlot`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Text/assignedSlot`
sourceraw docstring

set-is-element-content-whitespace!cljs

(set-is-element-content-whitespace! this val)

Property.

The Text.isElementContentWhitespace read-only property returns web.Boolean flag indicating whether or not the text node's consists solely of whitespace.

b = textnode.isElementContentWhitespace;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Text/isElementContentWhitespace

Property.

The Text.isElementContentWhitespace read-only property returns
`web.Boolean` flag indicating whether or not the text node's
consists solely of whitespace.

`b = textnode.isElementContentWhitespace;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Text/isElementContentWhitespace`
sourceraw docstring

set-whole-text!cljs

(set-whole-text! this val)

Property.

The Text.wholeText read-only property returns the full text of web.Text nodes logically adjacent to the node.

str = textnode.wholeText;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Text/wholeText

Property.

The Text.wholeText read-only property returns the full text of
`web.Text` nodes logically adjacent to the node.

`str = textnode.wholeText;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Text/wholeText`
sourceraw docstring

split-textcljs

(split-text this offset)

Method.

The Text.splitText() method breaks the web.Text node into two at the specified offset, keeping both nodes in the tree as siblings.

newNode = textNode.splitText(offset)

See also: https://developer.mozilla.org/en-US/docs/Web/API/Text/splitText

Method.

The Text.splitText() method breaks the `web.Text` node into two
at the specified offset, keeping both nodes in the tree as siblings.

`newNode = textNode.splitText(offset)`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Text/splitText`
sourceraw docstring

whole-textcljs

(whole-text this)

Property.

The Text.wholeText read-only property returns the full text of web.Text nodes logically adjacent to the node.

str = textnode.wholeText;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Text/wholeText

Property.

The Text.wholeText read-only property returns the full text of
`web.Text` nodes logically adjacent to the node.

`str = textnode.wholeText;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Text/wholeText`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close