Latest Posts: Inconsistent Markup in the Editor vs. front-end #60540
Closed
Description
Description
The markup generated in the Editor context vs. front-end context is inconsistent.
Editor:
<div>
<ul tabindex="0" class="wp-block-latest-posts__list ...">
...
</ul>
</div>
Front-end:
<ul class="wp-block-latest-posts__list ...">
...
</ul>
Seems to have been introduced in https://github.com/WordPress/gutenberg/pull/28660/files
Step-by-step reproduction instructions
- Go to the editor and create a new post or page.
- Add the "Latest Posts" block.
- Save.
- Inspect the markup rendered in the editor vs. on the front-end.
Screenshots, screen recording, code snippet
No response
Environment info
- WordPress 6.4.3
- Gutenberg plugin 18.0.0
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
Activity