Skip to content

Commit

Permalink
Set id attribute of cloned <audio> element
Browse files Browse the repository at this point in the history
  • Loading branch information
dapphp committed Feb 18, 2016
1 parent 5b7e286 commit 36cafeb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions securimage.js
Expand Up @@ -195,6 +195,7 @@ SecurimageAudio.prototype.replaceElements = function() {
var newAudioEl = document.createElement('audio');
newAudioEl.setAttribute('style', 'display: none;');
newAudioEl.setAttribute('preload', 'false');
newAudioEl.setAttribute('id', this.audioElement.id);

for (var c = 0; c < this.audioElement.children.length; ++c) {
if (this.audioElement.children[c].tagName.toLowerCase() != 'source') continue;
Expand Down

0 comments on commit 36cafeb

Please sign in to comment.