(parent)
| 31215 | |
| 31216 | module.exports = XMLNode = (function() { |
| 31217 | function XMLNode(parent) { |
| 31218 | this.parent = parent; |
| 31219 | if (this.parent) { |
| 31220 | this.options = this.parent.options; |
| 31221 | this.stringify = this.parent.stringify; |
| 31222 | } |
| 31223 | this.children = []; |
| 31224 | if (!XMLElement) { |
| 31225 | XMLElement = require('./XMLElement'); |
| 31226 | XMLCData = require('./XMLCData'); |
| 31227 | XMLComment = require('./XMLComment'); |
| 31228 | XMLDeclaration = require('./XMLDeclaration'); |
| 31229 | XMLDocType = require('./XMLDocType'); |
| 31230 | XMLRaw = require('./XMLRaw'); |
| 31231 | XMLText = require('./XMLText'); |
| 31232 | XMLProcessingInstruction = require('./XMLProcessingInstruction'); |
| 31233 | } |
| 31234 | } |
| 31235 | |
| 31236 | XMLNode.prototype.element = function(name, attributes, text) { |
| 31237 | var childNode, item, j, k, key, lastChild, len, len1, ref1, val; |
nothing calls this directly
no outgoing calls
no test coverage detected