(name, value)
| 65 | } |
| 66 | |
| 67 | addAttribute(name, value) { |
| 68 | if (!this.open) { |
| 69 | throw new Error('Cannot write attributes to node if it is not open'); |
| 70 | } |
| 71 | if (value !== undefined) { |
| 72 | pushAttribute(this._xml, name, value); |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | addAttributes(attrs) { |
| 77 | if (!this.open) { |
no test coverage detected