vendor/videojs/video.js
function setElAttributes(el, attributes) {
  Object.getOwnPropertyNames(attributes).forEach(function (attrName) {
    var attrValue = attributes[attrName];

    if (attrValue === null || typeof attrValue === 'undefined' || attrValue === false) {
      el.removeAttribute(attrName);
    } else {
      el.setAttribute(attrName, attrValue === true ? '' : attrValue);
    }
  });
}
function setElAttributes(el, attributes) {
  Object.getOwnPropertyNames(attributes).forEach(function (attrName) {
    var attrValue = attributes[attrName];

    if (attrValue === null || typeof attrValue === 'undefined' || attrValue === false) {
      el.removeAttribute(attrName);
    } else {
      el.setAttribute(attrName, attrValue === true ? '' : attrValue);
    }
  });
}
function setElAttributes ( el , attributes ) { Object . getOwnPropertyNames ( attributes ) . forEach ( function ( attrName ) { var attrValue = attributes [ attrName ] ; if ( attrValue === null || typeof attrValue === 'undefined' || attrValue === false ) { el . removeAttribute ( attrName ) ; } else { el . setAttribute ( attrName , attrValue === true ? '' : attrValue ) ; } } ) ; }
Apply attributes to an HTML element.

@param  {Element} el         Target element.
@param  {Object=} attributes Element attributes to be applied.
@private
@function setElAttributes
Apply attributes to an HTML element .