Currently `nodeValue` is a `def` but it should be `var` to allow setting a new `nodeValue`. From https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeValue > The Node.nodeValue property returns or sets the value of the current node. For `Text` node a work-around is to use the `data` property.