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