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.
(assigned-slot this)
Property.
The assignedSlot read-only property of the web.shadow-dom.Slotable
returns an web.shadow-dom.HTMLSlotElement
representing the
element the node is inserted in.
var slotElement = elementInstance.assignedSlot
See also: https://developer.mozilla.org/en-US/docs/Web/API/Slotable/assignedSlot
Property. The assignedSlot read-only property of the `web.shadow-dom.Slotable` returns an `web.shadow-dom.HTMLSlotElement` representing the element the node is inserted in. `var slotElement = elementInstance.assignedSlot` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Slotable/assignedSlot`
Constructor.
The Text() constructor returns a newly created web.Text
object with the optional web.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 `web.dom.DOMString` given in parameter as its textual content. See also: `https://developer.mozilla.org/en-US/docs/Web/API/Text/Text`
(is-element-content-whitespace this)
Property.
The Text.isElementContentWhitespace read-only property returns
js.Boolean
flag indicating whether or not the text node's content
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 `js.Boolean` flag indicating whether or not the text node's content solely of whitespace. `b = textnode.isElementContentWhitespace;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Text/isElementContentWhitespace`
(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`
(set-assigned-slot! this val)
Property.
The assignedSlot read-only property of the web.shadow-dom.Slotable
returns an web.shadow-dom.HTMLSlotElement
representing the
element the node is inserted in.
var slotElement = elementInstance.assignedSlot
See also: https://developer.mozilla.org/en-US/docs/Web/API/Slotable/assignedSlot
Property. The assignedSlot read-only property of the `web.shadow-dom.Slotable` returns an `web.shadow-dom.HTMLSlotElement` representing the element the node is inserted in. `var slotElement = elementInstance.assignedSlot` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Slotable/assignedSlot`
(set-is-element-content-whitespace! this val)
Property.
The Text.isElementContentWhitespace read-only property returns
js.Boolean
flag indicating whether or not the text node's content
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 `js.Boolean` flag indicating whether or not the text node's content solely of whitespace. `b = textnode.isElementContentWhitespace;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Text/isElementContentWhitespace`
(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`
(split-text this & args)
Method.
Breaks the node into two nodes at a specified offset.
Method. Breaks the node into two nodes at a specified offset.
(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`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close