INodeTextContent Property |
Namespace: DotNetBrowser.Dom
Exception | Condition |
---|---|
ArgumentException | The value is null. |
ObjectDisposedException | The INode has already been disposed. |
Setting this property on a node removes all of its children and replaces them with a single text node with the given value.
The property value depends on the type of the node, whhich can be checked via the Type property.
The property value is an empty string if the element is a document, a document type, or a notation.
If the node is a CDATA section, a comment, a processing instruction, or a text node, this method returns the text inside this node (the NodeValue).
For other node types, this method returns the concatenation of the TextContent attribute value of every child node, excluding comments and processing instruction nodes. This is an empty string if the node has no children.
Differences from InnerText: