Skip to content

Latest Posts: Inconsistent Markup in the Editor vs. front-end #60540

Closed
@dero

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

  1. Go to the editor and create a new post or page.
  2. Add the "Latest Posts" block.
  3. Save.
  4. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

[Block] Latest PostsAffects the Latest Posts Block[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions