src/salvation.js
function (elements, legend) {
            var elements = elements || [];
            for (var i = 0; i < elements.length; i++) {
                if (elements[i].classList.contains(this.stylings.error) === false)
                    elements[i].classList.add(this.stylings.error);
                var legend = elements[i].getAttribute("data-label") || legend;
                var parent = elements[i].parentNode;
                parent.setAttribute("data-hint", legend);
                if (i === 0)
                    elements[i].focus();
            }
        }
function (elements, legend) {
            var elements = elements || [];
            for (var i = 0; i < elements.length; i++) {
                if (elements[i].classList.contains(this.stylings.error) === false)
                    elements[i].classList.add(this.stylings.error);
                var legend = elements[i].getAttribute("data-label") || legend;
                var parent = elements[i].parentNode;
                parent.setAttribute("data-hint", legend);
                if (i === 0)
                    elements[i].focus();
            }
        }
function ( elements , legend ) { var elements = elements || [ ] ; for ( var i = 0 ; i < elements . length ; i ++ ) { if ( elements [ i ] . classList . contains ( this . stylings . error ) === false ) elements [ i ] . classList . add ( this . stylings . error ) ; var legend = elements [ i ] . getAttribute ( "data-label" ) || legend ; var parent = elements [ i ] . parentNode ; parent . setAttribute ( "data-hint" , legend ) ; if ( i === 0 ) elements [ i ] . focus ( ) ; } }
Performs the default invalidation
action on invalid elements.

@param       HTMLFormElement
Performs the default invalidation action on invalid elements .