We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Sample:
var url = new URL('file:///path'); url.protocol = 'http:';
Current result: http:///path (with empty host); but after re-parse host gets "path" value.
http:///path
host
I see two variants how to resolve this issue:
Related to #259 / #269
The text was updated successfully, but these errors were encountered:
I clearly didn't think hard enough. I will try to add this to the current PR. My tentative plan is to no-op for this case.
Sorry, something went wrong.
Also account for switching away from "file"
a8ed8d2
Fixes #270.
Done, added tests too.
URL: protocol needs to be more restrictive around "file"
e48dd15
See whatwg/url#259 and whatwg/url#270.
462fdc1
No branches or pull requests
Sample:
Current result:
http:///path
(with empty host); but after re-parsehost
gets "path" value.I see two variants how to resolve this issue:
host
to "localhost"Related to #259 / #269
The text was updated successfully, but these errors were encountered: