MCPcopy Index your code
hub / github.com/SplootCode/splootcode / createTextNode

Function createTextNode

packages/language-web/code_io/import_html.ts:60–66  ·  view source on GitHub ↗
(textElement: Text)

Source from the content-addressed store, hash-verified

58}
59
60function createTextNode(textElement: Text): StringLiteral {
61 if (textElement.textContent.trim().length === 0) {
62 return null
63 }
64 const splootNode = new StringLiteral(null, textElement.textContent)
65 return splootNode
66}
67
68function createNodeFromDomNode(domNode: ChildNode): SplootNode {
69 switch (domNode.nodeType) {

Callers 1

createNodeFromDomNodeFunction · 0.85

Calls 1

trimMethod · 0.80

Tested by

no test coverage detected