Length of the string in the <code>Text</code> node: <output></output>CharacterData: length property / notebook
CharacterData: length property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
const output = document.querySelector("output");
const textNode = new Text("This text has been set using 'textNode.data'.");
output.value = textNode.length;