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

Function XMLAttribute

static/word2md/mammoth.browser.js:30167–30179  ·  view source on GitHub ↗
(parent, name, value)

Source from the content-addressed store, hash-verified

30165
30166 module.exports = XMLAttribute = (function() {
30167 function XMLAttribute(parent, name, value) {
30168 this.options = parent.options;
30169 this.stringify = parent.stringify;
30170 this.parent = parent;
30171 if (name == null) {
30172 throw new Error("Missing attribute name. " + this.debugInfo(name));
30173 }
30174 if (value == null) {
30175 throw new Error("Missing attribute value. " + this.debugInfo(name));
30176 }
30177 this.name = this.stringify.attName(name);
30178 this.value = this.stringify.attValue(value);
30179 }
30180
30181 XMLAttribute.prototype.clone = function() {
30182 return Object.create(this);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected