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

URL: setting port to the empty string should null port #4101

Merged
merged 1 commit into from
Oct 28, 2016

Conversation

annevk
Copy link
Member

@annevk annevk commented Oct 28, 2016

No description provided.

@wpt-pr-bot
Copy link
Collaborator

Reviewers for this pull request are: @Sebmaster, @domenic, @frewsxcv, @mikewest, @rubys, @sideshowbarker, @smola, @tomalec, @xiaojunwu, and @zcorpan.

@wpt-stability-bot
Copy link

Firefox

Testing revision 2e75d38
Starting 10 test iterations
No tests run.

@wpt-stability-bot
Copy link

Chrome

Testing revision 2e75d38
Starting 10 test iterations
No tests run.

annevk added a commit to whatwg/html that referenced this pull request Oct 28, 2016
Setting it to the empty string should set the underlying port concept
to null. See web-platform-tests/wpt#4101 for
test changes and whatwg/url#113 for the change
to the URL Standard.
Copy link
Member

@zcorpan zcorpan left a comment

Choose a reason for hiding this comment

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

So this is for whatwg/url#113. LGTM

annevk pushed a commit to whatwg/url that referenced this pull request Oct 28, 2016
When it's setter is set to the empty string, it should set the underlying URL's port to null. Previously that was a no-op.

This matches Firefox. (Chromium sets the port to zero.)

Test: web-platform-tests/wpt#4101

Demo: http://software.hixie.ch/utilities/js/live-dom-viewer/saved/4054
@annevk annevk merged commit a6d3d9b into master Oct 28, 2016
zcorpan pushed a commit to whatwg/html that referenced this pull request Oct 28, 2016
Setting it to the empty string should set the underlying port concept
to null. See web-platform-tests/wpt#4101 for
test changes and whatwg/url#113 for the change
to the URL Standard.
@Ms2ger Ms2ger deleted the annevk/url-port-setter-empty-string branch November 14, 2016 10:01
alice pushed a commit to alice/html that referenced this pull request Jan 8, 2019
Setting it to the empty string should set the underlying port concept
to null. See web-platform-tests/wpt#4101 for
test changes and whatwg/url#113 for the change
to the URL Standard.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants