diff --git a/src/js/info.js b/src/js/info.js index e95b18b..31eabb7 100644 --- a/src/js/info.js +++ b/src/js/info.js @@ -17,7 +17,7 @@ class VideoInfo { } if (this.opts.title) { - this.titleEl = document.createElement('h4'); + this.titleEl = document.createElement('span'); this.titleEl.className = 'o-video__info-title'; this.infoEl.appendChild(this.titleEl); } diff --git a/src/js/video.js b/src/js/video.js index 3318c57..4d9472e 100644 --- a/src/js/video.js +++ b/src/js/video.js @@ -172,6 +172,8 @@ class Video { this.opts = Object.assign({}, defaultOpts, opts, getOptionsFromDataAttributes(this.containerEl.attributes)); + this.containerEl.setAttribute('aria-label', 'Video Player'); + if(typeof this.opts.systemcode !== 'string') { throw new Error('o-video requires "systemcode" is configured using the "data-o-video-systemcode" data attribute, or configured with the `opts` constructor argument. It must be set to a valid [Bizops system code](https://biz-ops.in.ft.com/list/Systems).'); }