Title: iframe class attribute missing
Last modified: December 22, 2018

---

# iframe class attribute missing

 *  Resolved [sitebizniz](https://wordpress.org/support/users/sitebizniz/)
 * (@sitebizniz)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/iframe-class-attribute-missing/)
 * Hi,
 * Wordpress allows a Youtube link to be pasted directly in the content and it takes
   care of constructing the iframe html.
 * When I look at the resulting html with lazysizes, the class seems to be missing
   and the video does not appear:
 * `<iframe width="742" height="417" data-src="https://www.youtube.com/embed/Udz133n_8Qo?
   feature=oembed" frameborder="0" allow="accelerometer; autoplay; encrypted-media;
   gyroscope; picture-in-picture" allowfullscreen=""></iframe>`
 * Otherwise the plugin is working great for me, but I can’t use it without being
   able to play videos.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Patrick Sletvold](https://wordpress.org/support/users/16patsle/)
 * (@16patsle)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/iframe-class-attribute-missing/#post-11037318)
 * Thanks for reporting! I happened to discover this while embedding videos myself,
   and as of today, a fix is available. If you download the latest version, 0.2.0,
   lazy loading of elements without classes (like iframe embeds from YouTube) should
   be working properly. Let me know if you still have issues.

Viewing 1 replies (of 1 total)

The topic ‘iframe class attribute missing’ is closed to new replies.

 * ![](https://ps.w.org/lazysizes/assets/icon.svg?rev=2357198)
 * [lazysizes](https://wordpress.org/plugins/lazysizes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/lazysizes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/lazysizes/)
 * [Active Topics](https://wordpress.org/support/plugin/lazysizes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lazysizes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lazysizes/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Patrick Sletvold](https://wordpress.org/support/users/16patsle/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/iframe-class-attribute-missing/#post-11037318)
 * Status: resolved