Skip to content

Commit e001240

Browse files
committed
URL: change null password handling
URL Standard change: whatwg/url#186.
1 parent 7071a3d commit e001240

File tree

1 file changed

+64
-4
lines changed

1 file changed

+64
-4
lines changed

url/urltestdata.json

Lines changed: 64 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,66 @@
3030
"search": "?b",
3131
"hash": "#c"
3232
},
33+
{
34+
"input": "https://test:@test",
35+
"base": "about:blank",
36+
"href": "https://test@test/",
37+
"origin": "https://test",
38+
"protocol": "https:",
39+
"username": "test",
40+
"password": "",
41+
"host": "test",
42+
"hostname": "test",
43+
"port": "",
44+
"pathname": "/",
45+
"search": "",
46+
"hash": ""
47+
},
48+
{
49+
"input": "https://:@test",
50+
"base": "about:blank",
51+
"href": "https://test/",
52+
"origin": "https://test",
53+
"protocol": "https:",
54+
"username": "",
55+
"password": "",
56+
"host": "test",
57+
"hostname": "test",
58+
"port": "",
59+
"pathname": "/",
60+
"search": "",
61+
"hash": ""
62+
},
63+
{
64+
"input": "non-special://test:@test/x",
65+
"base": "about:blank",
66+
"href": "non-special://test@test/x",
67+
"origin": "null",
68+
"protocol": "non-special:",
69+
"username": "test",
70+
"password": "",
71+
"host": "test",
72+
"hostname": "test",
73+
"port": "",
74+
"pathname": "/x",
75+
"search": "",
76+
"hash": ""
77+
},
78+
{
79+
"input": "non-special://:@test/x",
80+
"base": "about:blank",
81+
"href": "non-special://test/x",
82+
"origin": "null",
83+
"protocol": "non-special:",
84+
"username": "",
85+
"password": "",
86+
"host": "test",
87+
"hostname": "test",
88+
"port": "",
89+
"pathname": "/x",
90+
"search": "",
91+
"hash": ""
92+
},
3393
{
3494
"input": "http:foo.com",
3595
"base": "http://example.org/foo/bar",
@@ -3096,7 +3156,7 @@
30963156
{
30973157
"input": "http:a:@www.example.com",
30983158
"base": "about:blank",
3099-
"href": "http://a:@www.example.com/",
3159+
"href": "http://[email protected]/",
31003160
"origin": "http://www.example.com",
31013161
"protocol": "http:",
31023162
"username": "a",
@@ -3111,7 +3171,7 @@
31113171
{
31123172
"input": "http:/a:@www.example.com",
31133173
"base": "about:blank",
3114-
"href": "http://a:@www.example.com/",
3174+
"href": "http://[email protected]/",
31153175
"origin": "http://www.example.com",
31163176
"protocol": "http:",
31173177
"username": "a",
@@ -3126,7 +3186,7 @@
31263186
{
31273187
"input": "http://a:@www.example.com",
31283188
"base": "about:blank",
3129-
"href": "http://a:@www.example.com/",
3189+
"href": "http://[email protected]/",
31303190
"origin": "http://www.example.com",
31313191
"protocol": "http:",
31323192
"username": "a",
@@ -3171,7 +3231,7 @@
31713231
{
31723232
"input": "http://:@www.example.com",
31733233
"base": "about:blank",
3174-
"href": "http://:@www.example.com/",
3234+
"href": "http://www.example.com/",
31753235
"origin": "http://www.example.com",
31763236
"protocol": "http:",
31773237
"username": "",

0 commit comments

Comments
 (0)