MCPcopy Create free account
hub / github.com/TruthHun/BookStack / XMLNode

Function XMLNode

static/word2md/mammoth.browser.js:31217–31234  ·  view source on GitHub ↗
(parent)

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected