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

[Editorial] Remove a redundant condition in "cannot have a username/password/port" #667

Merged
merged 2 commits into from
Oct 25, 2021

Conversation

karwa
Copy link
Contributor

@karwa karwa commented Oct 25, 2021

If a URL has an opaque path, its host must already be null.

This makes the condition clearer and more direct - the reason you can't set a username/password/port on these URLs is because they lack an appropriate host. The fact that some such URLs may also have opaque paths is a coincidence.


Preview | Diff

@annevk
Copy link
Member

annevk commented Oct 25, 2021

Nice find. This dates back to the introduction of this definition cf616f9. It seems to originally stem from b266a43.

All tests continue to pass if I make this change in whatwg-url.

@annevk annevk merged commit f787850 into whatwg:main Oct 25, 2021
domenic pushed a commit to jsdom/whatwg-url that referenced this pull request Oct 25, 2021
@karwa karwa deleted the simply-simple branch October 25, 2021 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants