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

Function XMLDTDElement

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

Source from the content-addressed store, hash-verified

30339 extend(XMLDTDElement, superClass);
30340
30341 function XMLDTDElement(parent, name, value) {
30342 XMLDTDElement.__super__.constructor.call(this, parent);
30343 if (name == null) {
30344 throw new Error("Missing DTD element name. " + this.debugInfo());
30345 }
30346 if (!value) {
30347 value = '(#PCDATA)';
30348 }
30349 if (Array.isArray(value)) {
30350 value = '(' + value.join(',') + ')';
30351 }
30352 this.name = this.stringify.eleName(name);
30353 this.value = this.stringify.dtdElementValue(value);
30354 }
30355
30356 XMLDTDElement.prototype.toString = function(options) {
30357 return this.options.writer.set(options).dtdElement(this);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected