mirror of
https://github.com/videojs/video.js.git
synced 2025-01-13 10:32:26 +02:00
ignore: Prevent test failures in IE8 (#3891)
This commit is contained in:
parent
ac0b03f2f7
commit
26d4e7b0bf
@ -1030,9 +1030,6 @@ const mpegurlRE = /^application\/(?:x-|vnd\.apple\.)mpegurl/i;
|
||||
const mp4RE = /^video\/mp4/i;
|
||||
|
||||
Html5.patchCanPlayType = function() {
|
||||
if (!canPlayType) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Android 4.0 and above can play HLS to some extent but it reports being unable to do so
|
||||
if (browser.ANDROID_VERSION >= 4.0 && !browser.IS_FIREFOX) {
|
||||
|
@ -61,7 +61,14 @@ function classRegExp(className) {
|
||||
* @return {Boolean}
|
||||
*/
|
||||
export function isReal() {
|
||||
return document === window.document && typeof document.createElement === 'function';
|
||||
return (
|
||||
|
||||
// Both document and window will never be undefined thanks to `global`.
|
||||
document === window.document &&
|
||||
|
||||
// In IE < 9, DOM methods return "object" as their type, so all we can
|
||||
// confidently check is that it exists.
|
||||
typeof document.createElement !== 'undefined');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user