Iframe Placeholder Issue
-
If I supply a placeholder image using the <amp-img> tag as specified in the official AMP docs it gets removed and replaced with an empty <div>.
Expected code:
<amp-iframe width=300 height=420 layout=”responsive” allowfullscreen sandbox=”allow-scripts allow-same-origin” src=”https://foo.com/iframe”><amp-img layout=”fill” src=”https://foo.com/foo.png” placeholder></amp-img></amp-iframe>Code via Plugin:
<amp-iframe class=”rumble” height=”420″ src=”https://foo.com/iframe” frameborder=”0″ sandbox=”allow-scripts allow-same-origin” allowfullscreen=”” layout=”fixed-height”><div placeholder=”” class=”amp-wp-iframe-placeholder”></div></amp-iframe>
The topic ‘Iframe Placeholder Issue’ is closed to new replies.