Skip to content

Commit

Permalink
File URLs without base
Browse files Browse the repository at this point in the history
See whatwg/url#225 for the URL Standard change
and whatwg/url#217 for the original bug
report and tests.

Thanks @rmisev!
  • Loading branch information
annevk committed Feb 7, 2017
1 parent 77de4bb commit 3c090eb
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions url/urltestdata.json
Original file line number Diff line number Diff line change
Expand Up @@ -4910,6 +4910,49 @@
"search": "",
"hash": ""
},
"# file URLs without base URL by Rimas Misevičius",
{
"input": "file:",
"base": "about:blank",
"href": "file:///",
"protocol": "file:",
"username": "",
"password": "",
"host": "",
"hostname": "",
"port": "",
"pathname": "/",
"search": "",
"hash": ""
},
{
"input": "file:?q=v",
"base": "about:blank",
"href": "file:///?q=v",
"protocol": "file:",
"username": "",
"password": "",
"host": "",
"hostname": "",
"port": "",
"pathname": "/",
"search": "?q=v",
"hash": ""
},
{
"input": "file:#frag",
"base": "about:blank",
"href": "file:///#frag",
"protocol": "file:",
"username": "",
"password": "",
"host": "",
"hostname": "",
"port": "",
"pathname": "/",
"search": "",
"hash": "#frag"
},
"# IPv6 trailing zeros test",
{
"input": "http://[1:0::]",
Expand Down

0 comments on commit 3c090eb

Please sign in to comment.