import { Text } from "https://deno.land/x/gauntlet@v0.0.9/imports/happy_dom.ts";
Text node.
Methods
Inserts a set of Node or DOMString objects in the children list of this ChildNode's parent, just after this ChildNode. DOMString objects are inserted as equivalent Text nodes.
Appends the given DOMString to the CharacterData.data string; when this method returns, data contains the concatenated DOMString.
Inserts a set of Node or DOMString objects in the children list of this ChildNode's parent, just before this ChildNode. DOMString objects are inserted as equivalent Text nodes.
Removes the specified amount of characters, starting at the specified offset, from the CharacterData.data string; when this method returns, data contains the shortened DOMString.
Inserts the specified characters, at the specified offset, in the CharacterData.data string; when this method returns, data contains the modified DOMString.
Replaces the specified amount of characters, starting at the specified offset, with the specified DOMString; when this method returns, data contains the modified DOMString.
The Node.replaceWith() method replaces this Node in the children list of its parent with a set of Node or DOMString objects.
Returns a DOMString containing the part of CharacterData.data of the specified length and starting at the specified offset.