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

Function XMLElement

static/word2md/mammoth.browser.js:31095–31110  ·  view source on GitHub ↗
(parent, name, attributes)

Source from the content-addressed store, hash-verified

31093 extend(XMLElement, superClass);
31094
31095 function XMLElement(parent, name, attributes) {
31096 XMLElement.__super__.constructor.call(this, parent);
31097 if (name == null) {
31098 throw new Error("Missing element name. " + this.debugInfo());
31099 }
31100 this.name = this.stringify.eleName(name);
31101 this.attributes = {};
31102 if (attributes != null) {
31103 this.attribute(attributes);
31104 }
31105 if (parent.isDocument) {
31106 this.isRoot = true;
31107 this.documentObject = parent;
31108 parent.rootObject = this;
31109 }
31110 }
31111
31112 XMLElement.prototype.clone = function() {
31113 var att, attName, clonedSelf, ref1;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected