(tagname)
| 10 | |
| 11 | export default class XmlNode { |
| 12 | constructor(tagname) { |
| 13 | this.tagname = tagname; |
| 14 | this.child = []; //nested tags, text, cdata, comments in order |
| 15 | this[":@"] = Object.create(null); //attributes map |
| 16 | } |
| 17 | add(key, val) { |
| 18 | // this.child.push( {name : key, val: val, isCdata: isCdata }); |
| 19 | if (key === "__proto__") key = "#__proto__"; |
nothing calls this directly
no outgoing calls
no test coverage detected