[wp-trac] [WordPress Trac] #31058: audio video previews JS errors in IE 8

WordPress Trac noreply at wordpress.org
Mon Feb 9 08:25:05 UTC 2015


#31058: audio video previews JS errors in IE 8
--------------------------+-------------------------
 Reporter:  afercia       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.1.1
Component:  Media         |     Version:  4.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  javascript
--------------------------+-------------------------
Changes (by dd32):

 * keywords:   => has-patch


Comment:

 Duplicated in IE8, as expected, replacing with `t.$media.remove()` seems
 appropriate to me, jQuery uses `t.media.parentNode.removeChild( t.media
 );` which is the correct cross-browser remove method.

 For reference for those confused, [https://developer.mozilla.org/en-
 US/docs/Web/API/ChildNode.remove ChildNode.remove()] browser compabitility
 is relatively recent, and not actually supported by IE.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31058#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list