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

Function XMLDTDNotation

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

Source from the content-addressed store, hash-verified

30434 extend(XMLDTDNotation, superClass);
30435
30436 function XMLDTDNotation(parent, name, value) {
30437 XMLDTDNotation.__super__.constructor.call(this, parent);
30438 if (name == null) {
30439 throw new Error("Missing DTD notation name. " + this.debugInfo(name));
30440 }
30441 if (!value.pubID && !value.sysID) {
30442 throw new Error("Public or system identifiers are required for an external entity. " + this.debugInfo(name));
30443 }
30444 this.name = this.stringify.eleName(name);
30445 if (value.pubID != null) {
30446 this.pubID = this.stringify.dtdPubID(value.pubID);
30447 }
30448 if (value.sysID != null) {
30449 this.sysID = this.stringify.dtdSysID(value.sysID);
30450 }
30451 }
30452
30453 XMLDTDNotation.prototype.toString = function(options) {
30454 return this.options.writer.set(options).dtdNotation(this);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected