Skip to content

Clarify new optionality of src if srcset is available. #39557

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 19, 2025

Conversation

younisdev
Copy link
Contributor

Description

Clarifying that the src attribute is no longer required if srcset is present.

Motivation

This changes keep the documentation up to date and accurate, insuring the readers are aware that the src attribute is no longer required when srcset is present.

Additional details

None.

Related issues and pull requests

Fixes #39489

@younisdev younisdev requested a review from a team as a code owner May 18, 2025 14:15
@younisdev younisdev requested review from chrisdavidmills and removed request for a team May 18, 2025 14:15
@github-actions github-actions bot added Content:HTML Hypertext Markup Language docs size/xs [PR only] 0-5 LoC changed labels May 18, 2025
Copy link
Contributor

github-actions bot commented May 18, 2025

Preview URLs

(comment last updated: 2025-05-18 14:20:08)

Copy link
Contributor

@chrisdavidmills chrisdavidmills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM; thanks for the clarification, @younisdev!

@chrisdavidmills chrisdavidmills merged commit a5d7017 into mdn:main May 19, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:HTML Hypertext Markup Language docs size/xs [PR only] 0-5 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

<img src> is no longer required if srcset is present
2 participants