mirror of
https://github.com/videojs/video.js.git
synced 2024-11-28 08:58:46 +02:00
@OwenEdwards fixed links adding extra tab stop with IE by removing anchor tags on videojs init. closes #3194
This commit is contained in:
parent
ba7ec0bf57
commit
0d2d8f58dd
@ -10,6 +10,7 @@ CHANGELOG
|
||||
* @gkatsev added an option to keep the tooltips inside the player bounds ([view](https://github.com/videojs/video.js/pull/3149))
|
||||
* @defli added currentWidth and currentHeight methods to the player ([view](https://github.com/videojs/video.js/pull/3144))
|
||||
* fix IE8 tests for VIDEOJS_NO_DYNAMIC_STYLE ([view](https://github.com/videojs/video.js/pull/3215))
|
||||
* @OwenEdwards fixed links adding extra tab stop with IE by removing anchor tags on videojs init ([view](https://github.com/videojs/video.js/pull/3194))
|
||||
|
||||
--------------------
|
||||
|
||||
|
@ -299,6 +299,14 @@ class Player extends Component {
|
||||
this.fluid(this.options_.fluid);
|
||||
this.aspectRatio(this.options_.aspectRatio);
|
||||
|
||||
// Hide any links within the video/audio tag, because IE doesn't hide them completely.
|
||||
let links = tag.getElementsByTagName('a');
|
||||
for (let i = 0; i < links.length; i++) {
|
||||
let linkEl = links.item(i);
|
||||
Dom.addElClass(linkEl, 'vjs-hidden');
|
||||
linkEl.setAttribute('hidden', 'hidden');
|
||||
}
|
||||
|
||||
// insertElFirst seems to cause the networkState to flicker from 3 to 2, so
|
||||
// keep track of the original for later so we can know if the source originally failed
|
||||
tag.initNetworkState_ = tag.networkState;
|
||||
|
Loading…
Reference in New Issue
Block a user