Skip to content

Commit b30abae

Browse files
TimothyGudomenic
authored andcommitted
URL: default port set to null after scheme update (#6346)
For whatwg/url#328.
1 parent 52adc16 commit b30abae

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

url/setters_tests.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,16 @@
259259
"href": "view-source+data:text/html,<p>Test",
260260
"protocol": "view-source+data:"
261261
}
262+
},
263+
{
264+
"comment": "Port is set to null if it is the default for new scheme.",
265+
"href": "http://foo.com:443/",
266+
"new_value": "https",
267+
"expected": {
268+
"href": "https://foo.com/",
269+
"protocol": "https:",
270+
"port": ""
271+
}
262272
}
263273
],
264274
"username": [

0 commit comments

Comments
 (0)