-
Notifications
You must be signed in to change notification settings - Fork 31k
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
Data URLs can't have query params #54944
Comments
The parser is correct here. It doesn't work in Chrome or Firefox nor could I find anywhere in the spec that says to treat query params separately from the body. If I'm wrong please correct me. Treating query params separately creates a myriad of issues that moving to a dedicated parser aimed to fix; should the question mark in |
Shouldn't that PR become semver-major, as it modifies the existing behavior? |
I'd consider it a bug fix so not a semver-major change, we've done this a few times in undici. @nodejs/web-standards |
Someone reported the old behavior as a bug: #53775 It's always tricky to decide whether any change qualifies as a bug fix or as a breaking change (cf XKCD 1172). Do you have a use case for having a query parameter? |
Not really, I just noticed that this behavior was different in the |
IMO we should treat it as a bug fix (i.e. semver-patch): if there’s no use case for it, then it’s not going to break anyone — and it’s going to unbreak a few folks |
Version
main
Platform
Subsystem
No response
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Everytime
What is the expected behavior? Why is that the expected behavior?
The Data URL should load correctly, printing the
import.meta.url
with the queryWhat do you see instead?
Additional information
I believe this is due to #54748 (CC @KhafraDev)
The text was updated successfully, but these errors were encountered: