1# Interface: TextNode 2 3### Properties 4 5* [data](#data) 6* [name](#name) 7* [next](#next) 8* [nextSibling](#nextsibling) 9* [nodeType](#nodetype) 10* [nodeValue](#nodevalue) 11* [parent](#parent) 12* [parentNode](#parentnode) 13* [prev](#prev) 14* [previousSibling](#previoussibling) 15* [sourceCodeLocation](#sourcecodelocation) 16* [type](#type) 17 18--- 19 20## Properties 21 22<a id="data"></a> 23 24### data 25 26**● data**: *`string`* 27 28Text content. 29 30___ 31<a id="name"></a> 32 33### name 34 35**● name**: *"text"* 36 37The name of the node. 38 39___ 40<a id="next"></a> 41 42### next 43 44**● next**: *Node* 45 46Next sibling. 47 48___ 49<a id="nextsibling"></a> 50 51### nextSibling 52 53**● nextSibling**: *Node* 54 55Same as [next](#next). [DOM spec](https://dom.spec.whatwg.org)-compatible alias. 56 57___ 58<a id="nodetype"></a> 59 60### nodeType 61 62**● nodeType**: *`number`* 63 64[DOM spec](https://dom.spec.whatwg.org/#dom-node-nodetype)-compatible node [type](#type). 65 66___ 67<a id="nodevalue"></a> 68 69### nodeValue 70 71**● nodeValue**: *`string`* 72 73Same as [data](#data). [DOM spec](https://dom.spec.whatwg.org)-compatible alias. 74 75___ 76<a id="parent"></a> 77 78### parent 79 80**● parent**: *Node* 81 82Parent node. 83 84___ 85<a id="parentnode"></a> 86 87### parentNode 88 89**● parentNode**: *Node* 90 91Same as [parent](#parent). [DOM spec](https://dom.spec.whatwg.org)-compatible alias. 92 93___ 94<a id="prev"></a> 95 96### prev 97 98**● prev**: *Node* 99 100Previous sibling. 101 102___ 103<a id="previoussibling"></a> 104 105### previousSibling 106 107**● previousSibling**: *Node* 108 109Same as [prev](#prev). [DOM spec](https://dom.spec.whatwg.org)-compatible alias. 110 111___ 112<a id="sourcecodelocation"></a> 113 114### `<Optional>` sourceCodeLocation 115 116**● sourceCodeLocation**: *[Location](../../parse5/docs/location.md)* 117 118Comment source code location info. Available if location info is enabled via [ParserOptions](../../parse5/docs/parser-options.md). 119 120___ 121<a id="type"></a> 122 123### type 124 125**● type**: *`string`* 126 127The type of the node. E.g. [Document](document.md) will have `type` equal to 'root'`. 128 129___ 130 131