From 46ebe7e7d95da90a87b9edb77da8346ae7f05843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Pel=C3=A1ez?= Date: Mon, 11 Jun 2018 09:17:03 +0200 Subject: [PATCH] Added poster img ALT attribute to stop WCAG 2.0 error. --- src/javascript/jplayer/jquery.jplayer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/javascript/jplayer/jquery.jplayer.js b/src/javascript/jplayer/jquery.jplayer.js index 842f31b6..2281e1f7 100644 --- a/src/javascript/jplayer/jquery.jplayer.js +++ b/src/javascript/jplayer/jquery.jplayer.js @@ -991,6 +991,8 @@ // Create the poster image. this.htmlElement.poster = document.createElement('img'); this.htmlElement.poster.id = this.internal.poster.id; + // Added img ALT attribute to stop WCAG 2.0 error. + this.htmlElement.poster.alt = "Media"; this.htmlElement.poster.onload = function() { // Note that this did not work on Firefox 3.6: poster.addEventListener("onload", function() {}, false); Did not investigate x-browser. if(!self.status.video || self.status.waitForPlay) { self.internal.poster.jq.show();