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

Function XMLDocType

static/word2md/mammoth.browser.js:30527–30544  ·  view source on GitHub ↗
(parent, pubID, sysID)

Source from the content-addressed store, hash-verified

30525 extend(XMLDocType, superClass);
30526
30527 function XMLDocType(parent, pubID, sysID) {
30528 var ref, ref1;
30529 XMLDocType.__super__.constructor.call(this, parent);
30530 this.name = "!DOCTYPE";
30531 this.documentObject = parent;
30532 if (isObject(pubID)) {
30533 ref = pubID, pubID = ref.pubID, sysID = ref.sysID;
30534 }
30535 if (sysID == null) {
30536 ref1 = [pubID, sysID], sysID = ref1[0], pubID = ref1[1];
30537 }
30538 if (pubID != null) {
30539 this.pubID = this.stringify.dtdPubID(pubID);
30540 }
30541 if (sysID != null) {
30542 this.sysID = this.stringify.dtdSysID(sysID);
30543 }
30544 }
30545
30546 XMLDocType.prototype.element = function(name, value) {
30547 var child;

Callers

nothing calls this directly

Calls 1

isObjectFunction · 0.70

Tested by

no test coverage detected