(xmlStream, model)
| 10 | } |
| 11 | |
| 12 | render(xmlStream, model) { |
| 13 | if (model !== undefined) { |
| 14 | xmlStream.openNode(this.tag); |
| 15 | if (this.attrs) { |
| 16 | xmlStream.addAttributes(this.attrs); |
| 17 | } |
| 18 | if (this.attr) { |
| 19 | xmlStream.addAttribute(this.attr, model); |
| 20 | } else { |
| 21 | xmlStream.writeText(model); |
| 22 | } |
| 23 | xmlStream.closeNode(); |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | parseOpen(node) { |
| 28 | if (node.name === this.tag) { |
nothing calls this directly
no test coverage detected