happy-dom
Version:
Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.
28 lines • 768 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* MutationRecord is a model for a mutation.
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord
*/
class MutationRecord {
/**
* Constructor.
*
* @param init Options to initialize the mutation record.
*/
constructor(init) {
this.type = null;
this.target = null;
this.addedNodes = [];
this.removedNodes = [];
this.previousSibling = null;
this.nextSibling = null;
this.attributeName = null;
this.attributeNamespace = null;
this.oldValue = null;
Object.assign(this, init);
}
}
exports.default = MutationRecord;
//# sourceMappingURL=MutationRecord.cjs.map