(parent, name, value)
| 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); |
nothing calls this directly
no outgoing calls
no test coverage detected