yz3456
2024-07-29 fae5df1d3f1ae875ac546cacfb4744b2e8230ca2
1
2
3
4
5
6
7
8
9
let latestNodeId = 1
 
export default function TextNode (text) {
  this.instanceId = ''
  this.nodeId = latestNodeId++
  this.parentNode = null
  this.nodeType = 3
  this.text = text
}