# Interface: TextNode
### Properties
* [data](#data)
* [name](#name)
* [next](#next)
* [nextSibling](#nextsibling)
* [nodeType](#nodetype)
* [nodeValue](#nodevalue)
* [parent](#parent)
* [parentNode](#parentnode)
* [prev](#prev)
* [previousSibling](#previoussibling)
* [sourceCodeLocation](#sourcecodelocation)
* [type](#type)
---
## Properties
### data
**● data**: *`string`*
Text content.
___
### name
**● name**: *"text"*
The name of the node.
___
### next
**● next**: *Node*
Next sibling.
___
### nextSibling
**● nextSibling**: *Node*
Same as [next](#next). [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
___
### nodeType
**● nodeType**: *`number`*
[DOM spec](https://dom.spec.whatwg.org/#dom-node-nodetype)-compatible node [type](#type).
___
### nodeValue
**● nodeValue**: *`string`*
Same as [data](#data). [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
___
### parent
**● parent**: *Node*
Parent node.
___
### parentNode
**● parentNode**: *Node*
Same as [parent](#parent). [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
___
### prev
**● prev**: *Node*
Previous sibling.
___
### previousSibling
**● previousSibling**: *Node*
Same as [prev](#prev). [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
___
### `` sourceCodeLocation
**● sourceCodeLocation**: *[Location](../../parse5/docs/location.md)*
Comment source code location info. Available if location info is enabled via [ParserOptions](../../parse5/docs/parser-options.md).
___
### type
**● type**: *`string`*
The type of the node. E.g. [Document](document.md) will have `type` equal to 'root'`.
___