| 831 | window.mejs.HtmlMediaElementShim._createPlugin = window.mejs.HtmlMediaElementShim.createPlugin; |
| 832 | window.mejs.HtmlMediaElementShim.createPlugin = function( playback, options, poster, autoplay, preload, controls ) { |
| 833 | // Trick IE into believing that the root-level element (which is non-existant) is the body element, which it's designed to handle. |
| 834 | node = playback.htmlMediaElement; |
| 835 | while ( node ) { |
| 836 | if ( ! node.tagName && ! node.parentNode ) { |
| 837 | node.tagName = 'body'; |
| 838 | break; |
| 839 | } |
| 840 | node = node.parentNode; |
| 841 | } |
| 842 | return window.mejs.HtmlMediaElementShim._createPlugin.apply( this, [ playback, options, poster, autoplay, preload, controls ] ); |
| 843 | }; |
| 844 | |