Skip to content
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

Add href attribute for QRCodeSVG #336

Merged
merged 2 commits into from
Mar 16, 2024
Merged

Add href attribute for QRCodeSVG #336

merged 2 commits into from
Mar 16, 2024

Conversation

BABA983
Copy link
Contributor

@BABA983 BABA983 commented Feb 27, 2024

xlink:href is no longer recommended. Add href attribute for QRCodeSVG, the deprecated xlink:href attribute can be used as a fallback in addition to the href attribute.

@zpao
Copy link
Owner

zpao commented Mar 2, 2024

Good catch! Do you have an opinion about dropping xlinkHref? Based on the compat table, it seems like we're at least 5 years into that being supported.

@zpao zpao added this to the 4.0.0 milestone Mar 2, 2024
@BABA983
Copy link
Contributor Author

BABA983 commented Mar 3, 2024

Good catch! Do you have an opinion about dropping xlinkHref? Based on the compat table, it seems like we're at least 5 years into that being supported.

I think we can drop it since all modern browser support href and we did not change the imageSettings props, user who use qrcode.react will not be affected by this change. It's always good to follow best practices.
I can work on with that from this PR if you agree.

@zpao
Copy link
Owner

zpao commented Mar 3, 2024

Cool. Yea, let's do that. Thanks!

@zpao zpao merged commit b746365 into zpao:trunk Mar 16, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants