MCPcopy
hub / github.com/ampproject/worker-dom / cloneNode

Method cloneNode

src/worker-thread/dom/Text.ts:38–40  ·  view source on GitHub ↗

* @see https://developer.mozilla.org/en-US/docs/Web/API/Node/cloneNode * @return new Text Node with the same data as the Text to clone.

()

Source from the content-addressed store, hash-verified

36 * @return new Text Node with the same data as the Text to clone.
37 */
38 public cloneNode(): Text {
39 return this.ownerDocument.createTextNode(this.data);
40 }
41
42 /**
43 * Breaks Text node into two nodes at the specified offset, keeping both nodes in the tree as siblings.

Callers 7

cloneNode.test.tsFile · 0.45
cloneNode.test.tsFile · 0.45
cloneNode.test.tsFile · 0.45
cloneNode.test.tsFile · 0.45
installFunction · 0.45
clone.jsFile · 0.45
app.jsFile · 0.45

Calls 1

createTextNodeMethod · 0.80

Tested by

no test coverage detected