[wp-trac] [WordPress Trac] #63471: Remove IE Compat scripts from Media element scripting

WordPress Trac noreply at wordpress.org
Thu Jun 5 09:58:47 UTC 2025


#63471: Remove IE Compat scripts from Media element scripting
--------------------------------------+------------------------------
 Reporter:  joedolson                 |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Media                     |     Version:  3.6
 Severity:  normal                    |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:
--------------------------------------+------------------------------

Comment (by nigelnelles):

 We reproduced the error by adding a shortcode block to the site with the
 following code:

 [video src="https://example.com/video.mp4"
 poster="https://example.com/poster.jpg" width="800" height="450"
 autoplay="true"]

 With this shortcode on the site, the elements tab in the devtools shows:

 <!--[if lt IE
 9]><script>document.createElement('video');</script><![endif]-->

 When doing the same thing on the playground generated from the PR, this
 comment is not present which is the goal of the PR

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


More information about the wp-trac mailing list