WordPress.org

Make WordPress Core

Ticket #31058: mediaelement-and-player.js.diff

File mediaelement-and-player.js.diff, 911 bytes (added by dd32, 6 years ago)

Previous js file in diff form.

  • build/mediaelement-and-player.js

    diff --git a/build/mediaelement-and-player.js b/build/mediaelement-and-player.js
    index 3cfbfee..8c570c8 100644
    a b mejs.HtmlMediaElementShim = { 
    12281228
    12291229                // check for placement inside a <p> tag (sometimes WYSIWYG editors do this)
    12301230                node = htmlMediaElement.parentNode;
    1231                 while (node !== null && node.tagName.toLowerCase() !== 'body' && node.parentNode != null) {
    1232                         if (node.parentNode.tagName.toLowerCase() === 'p') {
     1231                while (node !== null && node.tagName && node.tagName.toLowerCase() !== 'body' && node.parentNode != null) {
     1232                        if (node.parentNode.tagName && node.parentNode.tagName.toLowerCase() === 'p') {
    12331233                                node.parentNode.parentNode.insertBefore(node, node.parentNode);
    12341234                                break;
    12351235                        }
    $.extend(mejs.MepDefaults, 
    54735473                }
    54745474        });
    54755475
    5476 })(mejs.$);
    5477  No newline at end of file
     5476})(mejs.$);