You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OEmbeds that return html missing the closing </iframe> tag do not render properly in the editor #34860
Summarized, if an oembed API returns an html field that contains an iframe tag that does not have a closing </iframe>, it will not be rendered in the editor (although once published, it will be rendered fine).
Step-by-step reproduction instructions
Add a oembed provider which returns html that is missing a closing </iframe>
Create a page
Add an embedded block using a URL that matches the oembed provider created in step 1
Click "embed" (the block should mostly disappear)
Screenshots, screen recording, code snippet
Current behavior
Expected behavior
Environment info
WordPress version: 5.8.1 or 5.9-alpha-51806
Gutenberg version: 11.5.0-rc.1 (possibly more)
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Sorry for the late reply. This issue has likely been resolved by #79920. I added a provider that returns a response without a closing iframe tag as shown below, but the iframe still renders with the correct width and height.
Activity
t-hamano commentedon Sep 17, 2026
Sorry for the late reply. This issue has likely been resolved by #79920. I added a provider that returns a response without a closing iframe tag as shown below, but the iframe still renders with the correct width and height.