Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcc committed Sep 29, 2014
1 parent 2a71d69 commit 10d5edd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/js/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,13 @@ vjs.Player.prototype.createEl = function(){
// ID will now reference player box, not the video tag
attrs = vjs.getElementAttributes(tag);
vjs.obj.each(attrs, function(attr) {
el.setAttribute(attr, attrs[attr]);
// workaround so we don't totally break IE7
// http://stackoverflow.com/questions/3653444/css-styles-not-applied-on-dynamic-elements-in-internet-explorer-7
if (attr == 'class') {
el.className = attrs[attr];
} else {
el.setAttribute(attr, attrs[attr]);
}
});

// Update tag id/class for use as HTML5 playback tech
Expand Down

0 comments on commit 10d5edd

Please sign in to comment.