src/aria/ext/StressCss.js
function (elm, properties) {
        for (var prop in properties) {
            if (properties.hasOwnProperty(prop)) {
                try {
                    var name = prop.replace(/\-([a-z])/ig, innerReplaceRule);
                    var value = properties[prop];
                    elm.style[name] = (typeof value == 'number' && name != 'zIndex') ? (value + 'px') : value;
                } catch (ex) {}
            }
        }
    }
function (elm, properties) {
        for (var prop in properties) {
            if (properties.hasOwnProperty(prop)) {
                try {
                    var name = prop.replace(/\-([a-z])/ig, innerReplaceRule);
                    var value = properties[prop];
                    elm.style[name] = (typeof value == 'number' && name != 'zIndex') ? (value + 'px') : value;
                } catch (ex) {}
            }
        }
    }
function ( elm , properties ) { for ( var prop in properties ) { if ( properties . hasOwnProperty ( prop ) ) { try { var name = prop . replace ( / \-([a-z]) / ig , innerReplaceRule ) ; var value = properties [ prop ] ; elm . style [ name ] = ( typeof value == 'number' && name != 'zIndex' ) ? ( value + 'px' ) : value ; } catch ( ex ) { } } } }
Apply style information to an HTML Object
@param {HTMLElement} elm DOM element
@param {Object} properties Map of key value properties to be added
Apply style information to an HTML Object