mozilla/vtt.js — pull request #185 by heff (2013-12-05 01:07:00+00:00)
Title: IE8 Support

Fixes #182, #183.

The commit list is a pretty good record of each change. I couldn't get tests to pass in a clean clone so wasn't able to verify that the tests still pass.

I added an Object.create shim despite my previous comment, because there was no easy way around it. It might actually be better to create an internal object.create function instead of updating the global Object to make sure it doesn't conflict with other implementations.

The textComment to innerHTML change I believe should work since it's already text nodes, but that should be tested.

With these changes I can run vtt.js in IE8 without any script errors, but it doesn't complete the parsing because it [tries to make a new window.VTTCue](https://github.com/mozilla/vtt.js/blob/master/vtt.js#L964), which doesn't exist on window, and then the [try/catch](https://github.com/mozilla/vtt.js/blob/master/vtt.js#L1006) swallows the error. Not exactly sure what the next steps are to fix that, so I'll open another issue for it.