var createNode = function (content, tag) {
    if (content === void 0) { content = ''; }
    if (tag === void 0) { tag = 'div'; }
    var node = document.createElement(tag);
    node.innerHTML = content;
    return node;
};
var setChildAttributes = function (parentEl, attribute, value) {
    Array.from(parentEl.children).forEach(function (el) { return el.setAttribute(attribute, value); });
};
// IE11-safe SVG innerHTML
var getSvgInnerHTML = function (el) {
    if (el.innerHTML !== undefined)
        return el.innerHTML;
    var XMLS = new XMLSerializer();
    var nodes = [];
    var nodesCount = el.childNodes.length;
    var i = 0;
    for (i; i < nodesCount; i++) {
        nodes.push(XMLS.serializeToString(el.childNodes[i]));
    }
    return nodes.join('');
};
export { createNode as c, getSvgInnerHTML as g, setChildAttributes as s };
