Skip to content

Duplicate data-wp-bind--srcset="state.enlargedSrcset" in wp-includes/blocks/image.php #79200

Closed

Description

@lonesahilnazir

Description

The data-wp-bind--srcset directive is emitted twice, identically. Harmless at runtime but it's a copy-paste artifact (duplicate attribute is invalid HTML and will be flagged by linters/validators).

Step-by-step reproduction instructions

Go to "/packages/block-library/src/image/index.php"

Screenshots, screen recording, code snippet

No response

Environment info

No response

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

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Activity

  1. westonruter commented on Jun 16, 2026

    @westonruter
    Member

    Duplicated attribute was introduced in #62906 via 676fabe. Specifically, it seems the duplicated attribute was introduced as part of some conflict resolution as I see it was added via a merge commit: 189a2cc.

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

Metadata

Metadata

Labels

[Status] In ProgressTracking issues with work in progress[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