(key, val)
| 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__"; |
| 20 | this.child.push({ [key]: val }); |
| 21 | } |
| 22 | addChild(node, startIndex) { |
| 23 | if (node.tagname === "__proto__") node.tagname = "#__proto__"; |
| 24 | if (node[":@"] && Object.keys(node[":@"]).length > 0) { |
no test coverage detected