"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setAttributes = exports.applyAttributes = exports.removeAllAttributes = void 0;
function removeAllAttributes(element) {
    const { attributes } = element;
    for (let i = attributes.length - 1; i >= 0; i--) {
        element.removeAttribute(attributes[i].name);
    }
}
exports.removeAllAttributes = removeAllAttributes;
function applyAttributes(element, attr) {
    for (const key in attr) {
        const a = attr[key];
        element.setAttribute(key, a);
    }
}
exports.applyAttributes = applyAttributes;
function setAttributes(element, attr) {
    // removeAllAttributes(element)
    applyAttributes(element, attr);
}
exports.setAttributes = setAttributes;
//# sourceMappingURL=attr.js.map