[wp-trac] [WordPress Trac] #38694: Embeds not working in IE 11 (was: oEmbed from WordPress Post doesn't have correct style in IE11)

WordPress Trac noreply at wordpress.org
Tue Nov 22 22:01:52 UTC 2016


#38694: Embeds not working in IE 11
--------------------------+-------------------------
 Reporter:  Fencer04      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.8
Component:  Embeds        |     Version:  4.4
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  javascript
--------------------------+-------------------------
Changes (by swissspidy):

 * focuses:   => javascript
 * component:  Bundled Theme => Embeds
 * version:   => 4.4
 * milestone:  Awaiting Review => 4.8
 * keywords:   => has-patch


Comment:

 The problem you're having is not about missing styles. Instead, the iframe
 is not being loaded at all.

 WordPress embeds consist of two parts: a `<blockquote>` element and an
 `<iframe>`. The quote is shown by default and eventually replaced by the
 iframe if it loads successfully. To be more precise, the iframe sends a
 message to the embedding site when it's been loaded completely to say it's
 ready.

 So on your second screenshot, the iframe is not loaded for some reason. I
 just tested embeds on IE 11 as well and it turns out the browser never
 reaches the line where the `security` attribute should be removed for IE
 10 and IE 11. Why? WordPress always adds the `data-secret` attribute in
 `wp_filter_oembed_result()`, this the check in `wp-embed.js` is flawed.

 Looks like this has been broken all the way since 4.4 :-( Perhaps
 introduced in [35577].

 Pinging @pento.

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


More information about the wp-trac mailing list