summaryrefslogtreecommitdiff
path: root/source/bower_components/modernizr/feature-detects/elem-track.js
diff options
context:
space:
mode:
authorLars Henrik Mai <lars.mai@kontinui.de>2014-09-21 12:25:47 +0200
committerLars Henrik Mai <lars.mai@kontinui.de>2014-09-21 12:25:47 +0200
commit7cc7910df63d19e7ebc67bb1156437f0559712d7 (patch)
tree66f972354559fe05b7a97efccd08fc363c91cf4d /source/bower_components/modernizr/feature-detects/elem-track.js
parent450a01136a510adc4c96ff12e05e00a2ce550c8f (diff)
add foundation via bower
Diffstat (limited to 'source/bower_components/modernizr/feature-detects/elem-track.js')
-rw-r--r--source/bower_components/modernizr/feature-detects/elem-track.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/bower_components/modernizr/feature-detects/elem-track.js b/source/bower_components/modernizr/feature-detects/elem-track.js
new file mode 100644
index 0000000..7d8e495
--- /dev/null
+++ b/source/bower_components/modernizr/feature-detects/elem-track.js
@@ -0,0 +1,11 @@
+// Track element + Timed Text Track API
+// http://www.w3.org/TR/html5/video.html#the-track-element
+// http://www.w3.org/TR/html5/media-elements.html#text-track-api
+//
+// While IE10 has implemented the track element, IE10 does not expose the underlying APIs to create timed text tracks by JS (really sad)
+// By Addy Osmani
+Modernizr.addTest({
+ texttrackapi: (typeof (document.createElement('video').addTextTrack) === 'function'),
+ // a more strict test for track including UI support: document.createElement('track').kind === 'subtitles'
+ track: ('kind' in document.createElement('track'))
+});