()
| 1296 | } |
| 1297 | |
| 1298 | toNode() { |
| 1299 | const svgNS = "http://www.w3.org/2000/svg"; |
| 1300 | const node = document.createElementNS(svgNS, "svg"); // Apply attributes |
| 1301 | |
| 1302 | for (const attr in this.attributes) { |
| 1303 | if (Object.prototype.hasOwnProperty.call(this.attributes, attr)) { |
| 1304 | node.setAttribute(attr, this.attributes[attr]); |
| 1305 | } |
| 1306 | } |
| 1307 | |
| 1308 | for (let i = 0; i < this.children.length; i++) { |
| 1309 | node.appendChild(this.children[i].toNode()); |
| 1310 | } |
| 1311 | |
| 1312 | return node; |
| 1313 | } |
| 1314 | |
| 1315 | toMarkup() { |
| 1316 | let markup = "<svg"; // Apply attributes |
nothing calls this directly
no test coverage detected