src/js/domutil.js
function setClassName(element, cssClass) {
    cssClass = snippet.isArray(cssClass) ? cssClass.join(' ') : cssClass;

    cssClass = trim(cssClass);

    if (snippet.isUndefined(element.className.baseVal)) {
        element.className = cssClass;

        return;
    }

    element.className.baseVal = cssClass;
}
function setClassName(element, cssClass) {
    cssClass = snippet.isArray(cssClass) ? cssClass.join(' ') : cssClass;

    cssClass = trim(cssClass);

    if (snippet.isUndefined(element.className.baseVal)) {
        element.className = cssClass;

        return;
    }

    element.className.baseVal = cssClass;
}
function setClassName ( element , cssClass ) { cssClass = snippet . isArray ( cssClass ) ? cssClass . join ( ' ' ) : cssClass ; cssClass = trim ( cssClass ) ; if ( snippet . isUndefined ( element . className . baseVal ) ) { element . className = cssClass ; return ; } element . className . baseVal = cssClass ; }
Set className value
@param {(HTMLElement|SVGElement)} element - target element
@param {(string|string[])} cssClass - class names
@ignore
Set className value