(textElement: Text)
| 58 | } |
| 59 | |
| 60 | function 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 | |
| 68 | function createNodeFromDomNode(domNode: ChildNode): SplootNode { |
| 69 | switch (domNode.nodeType) { |
no test coverage detected