[wp-trac] [WordPress Trac] #31058: audio video previews JS errors in IE 8
WordPress Trac
noreply at wordpress.org
Mon Jan 19 16:52:22 UTC 2015
#31058: audio video previews JS errors in IE 8
--------------------------+-----------------------------
Reporter: afercia | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.1
Severity: normal | Keywords:
Focuses: javascript |
--------------------------+-----------------------------
Noticed a couple of JS errors when browsing prev/next in the attachment
details modal using Internet Explorer 8: images are fine but as soon as
you next (or previous) items is a video or audio, the preview is not
rendered and the prev/next navigation fails.
It looks like the first error is caused by
[https://core.trac.wordpress.org/browser/trunk/src/wp-includes/js/media-
audiovideo.js?rev=31016#L56 this line in media-audiovideo.js]
{{{
t.media.remove();
}}}
where `t.media` seems to me it's the DOM object and maybe it should be the
`t.$media` jQuery object instead? See proposed patch.
About the second JS error, to be honest I gave up but seems it's from
`mediaelement-and-player.min.js`.
See errors details below.
{{{
Message: Object doesn't support this property or method
Line: 56
Char: 5
Code: 0
/wp-includes/js/media-audiovideo.js?ver=4.2-alpha-31007-src
Message: 'parentNode.tagName' is null or not an object
Line: 15
Char: 17054
Code: 0
/wp-includes/js/mediaelement/mediaelement-and-player.min.js?ver=2.16.2
}}}
[[Image(https://cldup.com/5KiNOyCd7r.png)]]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31058>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list