Skip to content
Myr

whatwg.json

This file

Path

tests/models/whatwg.json

9,746 lines · 203.9 KiB · JSON

Last changed by

Add URL parsing tests from WHATWG (#3188)Tom Christiebefore adoptiondb9072f

History of this file

Take it

1[2  "See ../README.md for a description of the format.",3  {4    "input": "http://example\t.\norg",5    "base": "http://example.org/foo/bar",6    "href": "http://example.org/",7    "origin": "http://example.org",8    "protocol": "http:",9    "username": "",10    "password": "",11    "host": "example.org",12    "hostname": "example.org",13    "port": "",14    "pathname": "/",15    "search": "",16    "hash": ""17  },18  {19    "input": "http://user:pass@foo:21/bar;par?b#c",20    "base": "http://example.org/foo/bar",21    "href": "http://user:pass@foo:21/bar;par?b#c",22    "origin": "http://foo:21",23    "protocol": "http:",24    "username": "user",25    "password": "pass",26    "host": "foo:21",27    "hostname": "foo",28    "port": "21",29    "pathname": "/bar;par",30    "search": "?b",31    "hash": "#c"32  },33  {34    "input": "https://test:@test",35    "base": null,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": null,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": null,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": null,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  },93  {94    "input": "http:foo.com",95    "base": "http://example.org/foo/bar",96    "href": "http://example.org/foo/foo.com",97    "origin": "http://example.org",98    "protocol": "http:",99    "username": "",100    "password": "",101    "host": "example.org",102    "hostname": "example.org",103    "port": "",104    "pathname": "/foo/foo.com",105    "search": "",106    "hash": ""107  },108  {109    "input": "\t   :foo.com   \n",110    "base": "http://example.org/foo/bar",111    "href": "http://example.org/foo/:foo.com",112    "origin": "http://example.org",113    "protocol": "http:",114    "username": "",115    "password": "",116    "host": "example.org",117    "hostname": "example.org",118    "port": "",119    "pathname": "/foo/:foo.com",120    "search": "",121    "hash": ""122  },123  {124    "input": " foo.com  ",125    "base": "http://example.org/foo/bar",126    "href": "http://example.org/foo/foo.com",127    "origin": "http://example.org",128    "protocol": "http:",129    "username": "",130    "password": "",131    "host": "example.org",132    "hostname": "example.org",133    "port": "",134    "pathname": "/foo/foo.com",135    "search": "",136    "hash": ""137  },138  {139    "input": "a:\t foo.com",140    "base": "http://example.org/foo/bar",141    "href": "a: foo.com",142    "origin": "null",143    "protocol": "a:",144    "username": "",145    "password": "",146    "host": "",147    "hostname": "",148    "port": "",149    "pathname": " foo.com",150    "search": "",151    "hash": ""152  },153  {154    "input": "http://f:21/ b ? d # e ",155    "base": "http://example.org/foo/bar",156    "href": "http://f:21/%20b%20?%20d%20#%20e",157    "origin": "http://f:21",158    "protocol": "http:",159    "username": "",160    "password": "",161    "host": "f:21",162    "hostname": "f",163    "port": "21",164    "pathname": "/%20b%20",165    "search": "?%20d%20",166    "hash": "#%20e"167  },168  {169    "input": "lolscheme:x x#x x",170    "base": null,171    "href": "lolscheme:x x#x%20x",172    "protocol": "lolscheme:",173    "username": "",174    "password": "",175    "host": "",176    "hostname": "",177    "port": "",178    "pathname": "x x",179    "search": "",180    "hash": "#x%20x"181  },182  {183    "input": "http://f:/c",184    "base": "http://example.org/foo/bar",185    "href": "http://f/c",186    "origin": "http://f",187    "protocol": "http:",188    "username": "",189    "password": "",190    "host": "f",191    "hostname": "f",192    "port": "",193    "pathname": "/c",194    "search": "",195    "hash": ""196  },197  {198    "input": "http://f:0/c",199    "base": "http://example.org/foo/bar",200    "href": "http://f:0/c",201    "origin": "http://f:0",202    "protocol": "http:",203    "username": "",204    "password": "",205    "host": "f:0",206    "hostname": "f",207    "port": "0",208    "pathname": "/c",209    "search": "",210    "hash": ""211  },212  {213    "input": "http://f:00000000000000/c",214    "base": "http://example.org/foo/bar",215    "href": "http://f:0/c",216    "origin": "http://f:0",217    "protocol": "http:",218    "username": "",219    "password": "",220    "host": "f:0",221    "hostname": "f",222    "port": "0",223    "pathname": "/c",224    "search": "",225    "hash": ""226  },227  {228    "input": "http://f:00000000000000000000080/c",229    "base": "http://example.org/foo/bar",230    "href": "http://f/c",231    "origin": "http://f",232    "protocol": "http:",233    "username": "",234    "password": "",235    "host": "f",236    "hostname": "f",237    "port": "",238    "pathname": "/c",239    "search": "",240    "hash": ""241  },242  {243    "input": "http://f:b/c",244    "base": "http://example.org/foo/bar",245    "failure": true246  },247  {248    "input": "http://f: /c",249    "base": "http://example.org/foo/bar",250    "failure": true251  },252  {253    "input": "http://f:\n/c",254    "base": "http://example.org/foo/bar",255    "href": "http://f/c",256    "origin": "http://f",257    "protocol": "http:",258    "username": "",259    "password": "",260    "host": "f",261    "hostname": "f",262    "port": "",263    "pathname": "/c",264    "search": "",265    "hash": ""266  },267  {268    "input": "http://f:fifty-two/c",269    "base": "http://example.org/foo/bar",270    "failure": true271  },272  {273    "input": "http://f:999999/c",274    "base": "http://example.org/foo/bar",275    "failure": true276  },277  {278    "input": "non-special://f:999999/c",279    "base": "http://example.org/foo/bar",280    "failure": true281  },282  {283    "input": "http://f: 21 / b ? d # e ",284    "base": "http://example.org/foo/bar",285    "failure": true286  },287  {288    "input": "",289    "base": "http://example.org/foo/bar",290    "href": "http://example.org/foo/bar",291    "origin": "http://example.org",292    "protocol": "http:",293    "username": "",294    "password": "",295    "host": "example.org",296    "hostname": "example.org",297    "port": "",298    "pathname": "/foo/bar",299    "search": "",300    "hash": ""301  },302  {303    "input": "  \t",304    "base": "http://example.org/foo/bar",305    "href": "http://example.org/foo/bar",306    "origin": "http://example.org",307    "protocol": "http:",308    "username": "",309    "password": "",310    "host": "example.org",311    "hostname": "example.org",312    "port": "",313    "pathname": "/foo/bar",314    "search": "",315    "hash": ""316  },317  {318    "input": ":foo.com/",319    "base": "http://example.org/foo/bar",320    "href": "http://example.org/foo/:foo.com/",321    "origin": "http://example.org",322    "protocol": "http:",323    "username": "",324    "password": "",325    "host": "example.org",326    "hostname": "example.org",327    "port": "",328    "pathname": "/foo/:foo.com/",329    "search": "",330    "hash": ""331  },332  {333    "input": ":foo.com\\",334    "base": "http://example.org/foo/bar",335    "href": "http://example.org/foo/:foo.com/",336    "origin": "http://example.org",337    "protocol": "http:",338    "username": "",339    "password": "",340    "host": "example.org",341    "hostname": "example.org",342    "port": "",343    "pathname": "/foo/:foo.com/",344    "search": "",345    "hash": ""346  },347  {348    "input": ":",349    "base": "http://example.org/foo/bar",350    "href": "http://example.org/foo/:",351    "origin": "http://example.org",352    "protocol": "http:",353    "username": "",354    "password": "",355    "host": "example.org",356    "hostname": "example.org",357    "port": "",358    "pathname": "/foo/:",359    "search": "",360    "hash": ""361  },362  {363    "input": ":a",364    "base": "http://example.org/foo/bar",365    "href": "http://example.org/foo/:a",366    "origin": "http://example.org",367    "protocol": "http:",368    "username": "",369    "password": "",370    "host": "example.org",371    "hostname": "example.org",372    "port": "",373    "pathname": "/foo/:a",374    "search": "",375    "hash": ""376  },377  {378    "input": ":/",379    "base": "http://example.org/foo/bar",380    "href": "http://example.org/foo/:/",381    "origin": "http://example.org",382    "protocol": "http:",383    "username": "",384    "password": "",385    "host": "example.org",386    "hostname": "example.org",387    "port": "",388    "pathname": "/foo/:/",389    "search": "",390    "hash": ""391  },392  {393    "input": ":\\",394    "base": "http://example.org/foo/bar",395    "href": "http://example.org/foo/:/",396    "origin": "http://example.org",397    "protocol": "http:",398    "username": "",399    "password": "",400    "host": "example.org",401    "hostname": "example.org",402    "port": "",403    "pathname": "/foo/:/",404    "search": "",405    "hash": ""406  },407  {408    "input": ":#",409    "base": "http://example.org/foo/bar",410    "href": "http://example.org/foo/:#",411    "origin": "http://example.org",412    "protocol": "http:",413    "username": "",414    "password": "",415    "host": "example.org",416    "hostname": "example.org",417    "port": "",418    "pathname": "/foo/:",419    "search": "",420    "hash": ""421  },422  {423    "input": "#",424    "base": "http://example.org/foo/bar",425    "href": "http://example.org/foo/bar#",426    "origin": "http://example.org",427    "protocol": "http:",428    "username": "",429    "password": "",430    "host": "example.org",431    "hostname": "example.org",432    "port": "",433    "pathname": "/foo/bar",434    "search": "",435    "hash": ""436  },437  {438    "input": "#/",439    "base": "http://example.org/foo/bar",440    "href": "http://example.org/foo/bar#/",441    "origin": "http://example.org",442    "protocol": "http:",443    "username": "",444    "password": "",445    "host": "example.org",446    "hostname": "example.org",447    "port": "",448    "pathname": "/foo/bar",449    "search": "",450    "hash": "#/"451  },452  {453    "input": "#\\",454    "base": "http://example.org/foo/bar",455    "href": "http://example.org/foo/bar#\\",456    "origin": "http://example.org",457    "protocol": "http:",458    "username": "",459    "password": "",460    "host": "example.org",461    "hostname": "example.org",462    "port": "",463    "pathname": "/foo/bar",464    "search": "",465    "hash": "#\\"466  },467  {468    "input": "#;?",469    "base": "http://example.org/foo/bar",470    "href": "http://example.org/foo/bar#;?",471    "origin": "http://example.org",472    "protocol": "http:",473    "username": "",474    "password": "",475    "host": "example.org",476    "hostname": "example.org",477    "port": "",478    "pathname": "/foo/bar",479    "search": "",480    "hash": "#;?"481  },482  {483    "input": "?",484    "base": "http://example.org/foo/bar",485    "href": "http://example.org/foo/bar?",486    "origin": "http://example.org",487    "protocol": "http:",488    "username": "",489    "password": "",490    "host": "example.org",491    "hostname": "example.org",492    "port": "",493    "pathname": "/foo/bar",494    "search": "",495    "hash": ""496  },497  {498    "input": "/",499    "base": "http://example.org/foo/bar",500    "href": "http://example.org/",501    "origin": "http://example.org",502    "protocol": "http:",503    "username": "",504    "password": "",505    "host": "example.org",506    "hostname": "example.org",507    "port": "",508    "pathname": "/",509    "search": "",510    "hash": ""511  },512  {513    "input": ":23",514    "base": "http://example.org/foo/bar",515    "href": "http://example.org/foo/:23",516    "origin": "http://example.org",517    "protocol": "http:",518    "username": "",519    "password": "",520    "host": "example.org",521    "hostname": "example.org",522    "port": "",523    "pathname": "/foo/:23",524    "search": "",525    "hash": ""526  },527  {528    "input": "/:23",529    "base": "http://example.org/foo/bar",530    "href": "http://example.org/:23",531    "origin": "http://example.org",532    "protocol": "http:",533    "username": "",534    "password": "",535    "host": "example.org",536    "hostname": "example.org",537    "port": "",538    "pathname": "/:23",539    "search": "",540    "hash": ""541  },542  {543    "input": "\\x",544    "base": "http://example.org/foo/bar",545    "href": "http://example.org/x",546    "origin": "http://example.org",547    "protocol": "http:",548    "username": "",549    "password": "",550    "host": "example.org",551    "hostname": "example.org",552    "port": "",553    "pathname": "/x",554    "search": "",555    "hash": ""556  },557  {558    "input": "\\\\x\\hello",559    "base": "http://example.org/foo/bar",560    "href": "http://x/hello",561    "origin": "http://x",562    "protocol": "http:",563    "username": "",564    "password": "",565    "host": "x",566    "hostname": "x",567    "port": "",568    "pathname": "/hello",569    "search": "",570    "hash": ""571  },572  {573    "input": "::",574    "base": "http://example.org/foo/bar",575    "href": "http://example.org/foo/::",576    "origin": "http://example.org",577    "protocol": "http:",578    "username": "",579    "password": "",580    "host": "example.org",581    "hostname": "example.org",582    "port": "",583    "pathname": "/foo/::",584    "search": "",585    "hash": ""586  },587  {588    "input": "::23",589    "base": "http://example.org/foo/bar",590    "href": "http://example.org/foo/::23",591    "origin": "http://example.org",592    "protocol": "http:",593    "username": "",594    "password": "",595    "host": "example.org",596    "hostname": "example.org",597    "port": "",598    "pathname": "/foo/::23",599    "search": "",600    "hash": ""601  },602  {603    "input": "foo://",604    "base": "http://example.org/foo/bar",605    "href": "foo://",606    "origin": "null",607    "protocol": "foo:",608    "username": "",609    "password": "",610    "host": "",611    "hostname": "",612    "port": "",613    "pathname": "",614    "search": "",615    "hash": ""616  },617  {618    "input": "http://a:b@c:29/d",619    "base": "http://example.org/foo/bar",620    "href": "http://a:b@c:29/d",621    "origin": "http://c:29",622    "protocol": "http:",623    "username": "a",624    "password": "b",625    "host": "c:29",626    "hostname": "c",627    "port": "29",628    "pathname": "/d",629    "search": "",630    "hash": ""631  },632  {633    "input": "http::@c:29",634    "base": "http://example.org/foo/bar",635    "href": "http://example.org/foo/:@c:29",636    "origin": "http://example.org",637    "protocol": "http:",638    "username": "",639    "password": "",640    "host": "example.org",641    "hostname": "example.org",642    "port": "",643    "pathname": "/foo/:@c:29",644    "search": "",645    "hash": ""646  },647  {648    "input": "http://&a:foo(b]c@d:2/",649    "base": "http://example.org/foo/bar",650    "href": "http://&a:foo(b%5Dc@d:2/",651    "origin": "http://d:2",652    "protocol": "http:",653    "username": "&a",654    "password": "foo(b%5Dc",655    "host": "d:2",656    "hostname": "d",657    "port": "2",658    "pathname": "/",659    "search": "",660    "hash": ""661  },662  {663    "input": "http://::@c@d:2",664    "base": "http://example.org/foo/bar",665    "href": "http://:%3A%40c@d:2/",666    "origin": "http://d:2",667    "protocol": "http:",668    "username": "",669   "password": "%3A%40c",670    "host": "d:2",671    "hostname": "d",672    "port": "2",673    "pathname": "/",674    "search": "",675    "hash": ""676  },677  {678    "input": "http://foo.com:b@d/",679    "base": "http://example.org/foo/bar",680    "href": "http://foo.com:b@d/",681    "origin": "http://d",682    "protocol": "http:",683    "username": "foo.com",684    "password": "b",685    "host": "d",686    "hostname": "d",687    "port": "",688    "pathname": "/",689    "search": "",690    "hash": ""691  },692  {693    "input": "http://foo.com/\\@",694    "base": "http://example.org/foo/bar",695    "href": "http://foo.com//@",696    "origin": "http://foo.com",697    "protocol": "http:",698    "username": "",699    "password": "",700    "host": "foo.com",701    "hostname": "foo.com",702    "port": "",703    "pathname": "//@",704    "search": "",705    "hash": ""706  },707  {708    "input": "http:\\\\foo.com\\",709    "base": "http://example.org/foo/bar",710    "href": "http://foo.com/",711    "origin": "http://foo.com",712    "protocol": "http:",713    "username": "",714    "password": "",715    "host": "foo.com",716    "hostname": "foo.com",717    "port": "",718    "pathname": "/",719    "search": "",720    "hash": ""721  },722  {723    "input": "http:\\\\a\\b:c\\d@foo.com\\",724    "base": "http://example.org/foo/bar",725    "href": "http://a/b:c/d@foo.com/",726    "origin": "http://a",727    "protocol": "http:",728    "username": "",729    "password": "",730    "host": "a",731    "hostname": "a",732    "port": "",733    "pathname": "/b:c/d@foo.com/",734    "search": "",735    "hash": ""736  },737  {738    "input": "http://a:b@c\\",739    "base": null,740    "href": "http://a:b@c/",741    "origin": "http://c",742    "protocol": "http:",743    "username": "a",744    "password": "b",745    "host": "c",746    "hostname": "c",747    "port": "",748    "pathname": "/",749    "search": "",750    "hash": ""751  },752  {753    "input": "ws://a@b\\c",754    "base": null,755    "href": "ws://a@b/c",756    "origin": "ws://b",757    "protocol": "ws:",758    "username": "a",759    "password": "",760    "host": "b",761    "hostname": "b",762    "port": "",763    "pathname": "/c",764    "search": "",765    "hash": ""766  },767  {768    "input": "foo:/",769    "base": "http://example.org/foo/bar",770    "href": "foo:/",771    "origin": "null",772    "protocol": "foo:",773    "username": "",774    "password": "",775    "host": "",776    "hostname": "",777    "port": "",778    "pathname": "/",779    "search": "",780    "hash": ""781  },782  {783    "input": "foo:/bar.com/",784    "base": "http://example.org/foo/bar",785    "href": "foo:/bar.com/",786    "origin": "null",787    "protocol": "foo:",788    "username": "",789    "password": "",790    "host": "",791    "hostname": "",792    "port": "",793    "pathname": "/bar.com/",794    "search": "",795    "hash": ""796  },797  {798    "input": "foo://///////",799    "base": "http://example.org/foo/bar",800    "href": "foo://///////",801    "origin": "null",802    "protocol": "foo:",803    "username": "",804    "password": "",805    "host": "",806    "hostname": "",807    "port": "",808    "pathname": "///////",809    "search": "",810    "hash": ""811  },812  {813    "input": "foo://///////bar.com/",814    "base": "http://example.org/foo/bar",815    "href": "foo://///////bar.com/",816    "origin": "null",817    "protocol": "foo:",818    "username": "",819    "password": "",820    "host": "",821    "hostname": "",822    "port": "",823    "pathname": "///////bar.com/",824    "search": "",825    "hash": ""826  },827  {828    "input": "foo:////://///",829    "base": "http://example.org/foo/bar",830    "href": "foo:////://///",831    "origin": "null",832    "protocol": "foo:",833    "username": "",834    "password": "",835    "host": "",836    "hostname": "",837    "port": "",838    "pathname": "//://///",839    "search": "",840    "hash": ""841  },842  {843    "input": "c:/foo",844    "base": "http://example.org/foo/bar",845    "href": "c:/foo",846    "origin": "null",847    "protocol": "c:",848    "username": "",849    "password": "",850    "host": "",851    "hostname": "",852    "port": "",853    "pathname": "/foo",854    "search": "",855    "hash": ""856  },857  {858    "input": "//foo/bar",859    "base": "http://example.org/foo/bar",860    "href": "http://foo/bar",861    "origin": "http://foo",862    "protocol": "http:",863    "username": "",864    "password": "",865    "host": "foo",866    "hostname": "foo",867    "port": "",868    "pathname": "/bar",869    "search": "",870    "hash": ""871  },872  {873    "input": "http://foo/path;a??e#f#g",874    "base": "http://example.org/foo/bar",875    "href": "http://foo/path;a??e#f#g",876    "origin": "http://foo",877    "protocol": "http:",878    "username": "",879    "password": "",880    "host": "foo",881    "hostname": "foo",882    "port": "",883    "pathname": "/path;a",884    "search": "??e",885    "hash": "#f#g"886  },887  {888    "input": "http://foo/abcd?efgh?ijkl",889    "base": "http://example.org/foo/bar",890    "href": "http://foo/abcd?efgh?ijkl",891    "origin": "http://foo",892    "protocol": "http:",893    "username": "",894    "password": "",895    "host": "foo",896    "hostname": "foo",897    "port": "",898    "pathname": "/abcd",899    "search": "?efgh?ijkl",900    "hash": ""901  },902  {903    "input": "http://foo/abcd#foo?bar",904    "base": "http://example.org/foo/bar",905    "href": "http://foo/abcd#foo?bar",906    "origin": "http://foo",907    "protocol": "http:",908    "username": "",909    "password": "",910    "host": "foo",911    "hostname": "foo",912    "port": "",913    "pathname": "/abcd",914    "search": "",915    "hash": "#foo?bar"916  },917  {918    "input": "[61:24:74]:98",919    "base": "http://example.org/foo/bar",920    "href": "http://example.org/foo/[61:24:74]:98",921    "origin": "http://example.org",922    "protocol": "http:",923    "username": "",924    "password": "",925    "host": "example.org",926    "hostname": "example.org",927    "port": "",928    "pathname": "/foo/[61:24:74]:98",929    "search": "",930    "hash": ""931  },932  {933    "input": "http:[61:27]/:foo",934    "base": "http://example.org/foo/bar",935    "href": "http://example.org/foo/[61:27]/:foo",936    "origin": "http://example.org",937    "protocol": "http:",938    "username": "",939    "password": "",940    "host": "example.org",941    "hostname": "example.org",942    "port": "",943    "pathname": "/foo/[61:27]/:foo",944    "search": "",945    "hash": ""946  },947  {948    "input": "http://[1::2]:3:4",949    "base": "http://example.org/foo/bar",950    "failure": true951  },952  {953    "input": "http://2001::1",954    "base": "http://example.org/foo/bar",955    "failure": true956  },957  {958    "input": "http://2001::1]",959    "base": "http://example.org/foo/bar",960    "failure": true961  },962  {963    "input": "http://2001::1]:80",964    "base": "http://example.org/foo/bar",965    "failure": true966  },967  {968    "input": "http://[2001::1]",969    "base": "http://example.org/foo/bar",970    "href": "http://[2001::1]/",971    "origin": "http://[2001::1]",972    "protocol": "http:",973    "username": "",974    "password": "",975    "host": "[2001::1]",976    "hostname": "[2001::1]",977    "port": "",978    "pathname": "/",979    "search": "",980    "hash": ""981  },982  {983    "input": "http://[::127.0.0.1]",984    "base": "http://example.org/foo/bar",985    "href": "http://[::7f00:1]/",986    "origin": "http://[::7f00:1]",987    "protocol": "http:",988    "username": "",989    "password": "",990    "host": "[::7f00:1]",991    "hostname": "[::7f00:1]",992    "port": "",993    "pathname": "/",994    "search": "",995    "hash": ""996  },997  {998    "input": "http://[::127.0.0.1.]",999    "base": "http://example.org/foo/bar",1000    "failure": true1001  },1002  {1003    "input": "http://[0:0:0:0:0:0:13.1.68.3]",1004    "base": "http://example.org/foo/bar",1005    "href": "http://[::d01:4403]/",1006    "origin": "http://[::d01:4403]",1007    "protocol": "http:",1008    "username": "",1009    "password": "",1010    "host": "[::d01:4403]",1011    "hostname": "[::d01:4403]",1012    "port": "",1013    "pathname": "/",1014    "search": "",1015    "hash": ""1016  },1017  {1018    "input": "http://[2001::1]:80",1019    "base": "http://example.org/foo/bar",1020    "href": "http://[2001::1]/",1021    "origin": "http://[2001::1]",1022    "protocol": "http:",1023    "username": "",1024    "password": "",1025    "host": "[2001::1]",1026    "hostname": "[2001::1]",1027    "port": "",1028    "pathname": "/",1029    "search": "",1030    "hash": ""1031  },1032  {1033    "input": "http:/example.com/",1034    "base": "http://example.org/foo/bar",1035    "href": "http://example.org/example.com/",1036    "origin": "http://example.org",1037    "protocol": "http:",1038    "username": "",1039    "password": "",1040    "host": "example.org",1041    "hostname": "example.org",1042    "port": "",1043    "pathname": "/example.com/",1044    "search": "",1045    "hash": ""1046  },1047  {1048    "input": "ftp:/example.com/",1049    "base": "http://example.org/foo/bar",1050    "href": "ftp://example.com/",1051    "origin": "ftp://example.com",1052    "protocol": "ftp:",1053    "username": "",1054    "password": "",1055    "host": "example.com",1056    "hostname": "example.com",1057    "port": "",1058    "pathname": "/",1059    "search": "",1060    "hash": ""1061  },1062  {1063    "input": "https:/example.com/",1064    "base": "http://example.org/foo/bar",1065    "href": "https://example.com/",1066    "origin": "https://example.com",1067    "protocol": "https:",1068    "username": "",1069    "password": "",1070    "host": "example.com",1071    "hostname": "example.com",1072    "port": "",1073    "pathname": "/",1074    "search": "",1075    "hash": ""1076  },1077  {1078    "input": "madeupscheme:/example.com/",1079    "base": "http://example.org/foo/bar",1080    "href": "madeupscheme:/example.com/",1081    "origin": "null",1082    "protocol": "madeupscheme:",1083    "username": "",1084    "password": "",1085    "host": "",1086    "hostname": "",1087    "port": "",1088    "pathname": "/example.com/",1089    "search": "",1090    "hash": ""1091  },1092  {1093    "input": "file:/example.com/",1094    "base": "http://example.org/foo/bar",1095    "href": "file:///example.com/",1096    "protocol": "file:",1097    "username": "",1098    "password": "",1099    "host": "",1100    "hostname": "",1101    "port": "",1102    "pathname": "/example.com/",1103    "search": "",1104    "hash": ""1105  },1106  {1107    "input": "file://example:1/",1108    "base": null,1109    "failure": true1110  },1111  {1112    "input": "file://example:test/",1113    "base": null,1114    "failure": true1115  },1116  {1117    "input": "file://example%/",1118    "base": null,1119    "failure": true1120  },1121  {1122    "input": "file://[example]/",1123    "base": null,1124    "failure": true1125  },1126  {1127    "input": "ftps:/example.com/",1128    "base": "http://example.org/foo/bar",1129    "href": "ftps:/example.com/",1130    "origin": "null",1131    "protocol": "ftps:",1132    "username": "",1133    "password": "",1134    "host": "",1135    "hostname": "",1136    "port": "",1137    "pathname": "/example.com/",1138    "search": "",1139    "hash": ""1140  },1141  {1142    "input": "gopher:/example.com/",1143    "base": "http://example.org/foo/bar",1144    "href": "gopher:/example.com/",1145    "origin": "null",1146    "protocol": "gopher:",1147    "username": "",1148    "password": "",1149    "host": "",1150    "hostname": "",1151    "port": "",1152    "pathname": "/example.com/",1153    "search": "",1154    "hash": ""1155  },1156  {1157    "input": "ws:/example.com/",1158    "base": "http://example.org/foo/bar",1159    "href": "ws://example.com/",1160    "origin": "ws://example.com",1161    "protocol": "ws:",1162    "username": "",1163    "password": "",1164    "host": "example.com",1165    "hostname": "example.com",1166    "port": "",1167    "pathname": "/",1168    "search": "",1169    "hash": ""1170  },1171  {1172    "input": "wss:/example.com/",1173    "base": "http://example.org/foo/bar",1174    "href": "wss://example.com/",1175    "origin": "wss://example.com",1176    "protocol": "wss:",1177    "username": "",1178    "password": "",1179    "host": "example.com",1180    "hostname": "example.com",1181    "port": "",1182    "pathname": "/",1183    "search": "",1184    "hash": ""1185  },1186  {1187    "input": "data:/example.com/",1188    "base": "http://example.org/foo/bar",1189    "href": "data:/example.com/",1190    "origin": "null",1191    "protocol": "data:",1192    "username": "",1193    "password": "",1194    "host": "",1195    "hostname": "",1196    "port": "",1197    "pathname": "/example.com/",1198    "search": "",1199    "hash": ""1200  },1201  {1202    "input": "javascript:/example.com/",1203    "base": "http://example.org/foo/bar",1204    "href": "javascript:/example.com/",1205    "origin": "null",1206    "protocol": "javascript:",1207    "username": "",1208    "password": "",1209    "host": "",1210    "hostname": "",1211    "port": "",1212    "pathname": "/example.com/",1213    "search": "",1214    "hash": ""1215  },1216  {1217    "input": "mailto:/example.com/",1218    "base": "http://example.org/foo/bar",1219    "href": "mailto:/example.com/",1220    "origin": "null",1221    "protocol": "mailto:",1222    "username": "",1223    "password": "",1224    "host": "",1225    "hostname": "",1226    "port": "",1227    "pathname": "/example.com/",1228    "search": "",1229    "hash": ""1230  },1231  {1232    "input": "http:example.com/",1233    "base": "http://example.org/foo/bar",1234    "href": "http://example.org/foo/example.com/",1235    "origin": "http://example.org",1236    "protocol": "http:",1237    "username": "",1238    "password": "",1239    "host": "example.org",1240    "hostname": "example.org",1241    "port": "",1242    "pathname": "/foo/example.com/",1243    "search": "",1244    "hash": ""1245  },1246  {1247    "input": "ftp:example.com/",1248    "base": "http://example.org/foo/bar",1249    "href": "ftp://example.com/",1250    "origin": "ftp://example.com",1251    "protocol": "ftp:",1252    "username": "",1253    "password": "",1254    "host": "example.com",1255    "hostname": "example.com",1256    "port": "",1257    "pathname": "/",1258    "search": "",1259    "hash": ""1260  },1261  {1262    "input": "https:example.com/",1263    "base": "http://example.org/foo/bar",1264    "href": "https://example.com/",1265    "origin": "https://example.com",1266    "protocol": "https:",1267    "username": "",1268    "password": "",1269    "host": "example.com",1270    "hostname": "example.com",1271    "port": "",1272    "pathname": "/",1273    "search": "",1274    "hash": ""1275  },1276  {1277    "input": "madeupscheme:example.com/",1278    "base": "http://example.org/foo/bar",1279    "href": "madeupscheme:example.com/",1280    "origin": "null",1281    "protocol": "madeupscheme:",1282    "username": "",1283    "password": "",1284    "host": "",1285    "hostname": "",1286    "port": "",1287    "pathname": "example.com/",1288    "search": "",1289    "hash": ""1290  },1291  {1292    "input": "ftps:example.com/",1293    "base": "http://example.org/foo/bar",1294    "href": "ftps:example.com/",1295    "origin": "null",1296    "protocol": "ftps:",1297    "username": "",1298    "password": "",1299    "host": "",1300    "hostname": "",1301    "port": "",1302    "pathname": "example.com/",1303    "search": "",1304    "hash": ""1305  },1306  {1307    "input": "gopher:example.com/",1308    "base": "http://example.org/foo/bar",1309    "href": "gopher:example.com/",1310    "origin": "null",1311    "protocol": "gopher:",1312    "username": "",1313    "password": "",1314    "host": "",1315    "hostname": "",1316    "port": "",1317    "pathname": "example.com/",1318    "search": "",1319    "hash": ""1320  },1321  {1322    "input": "ws:example.com/",1323    "base": "http://example.org/foo/bar",1324    "href": "ws://example.com/",1325    "origin": "ws://example.com",1326    "protocol": "ws:",1327    "username": "",1328    "password": "",1329    "host": "example.com",1330    "hostname": "example.com",1331    "port": "",1332    "pathname": "/",1333    "search": "",1334    "hash": ""1335  },1336  {1337    "input": "wss:example.com/",1338    "base": "http://example.org/foo/bar",1339    "href": "wss://example.com/",1340    "origin": "wss://example.com",1341    "protocol": "wss:",1342    "username": "",1343    "password": "",1344    "host": "example.com",1345    "hostname": "example.com",1346    "port": "",1347    "pathname": "/",1348    "search": "",1349    "hash": ""1350  },1351  {1352    "input": "data:example.com/",1353    "base": "http://example.org/foo/bar",1354    "href": "data:example.com/",1355    "origin": "null",1356    "protocol": "data:",1357    "username": "",1358    "password": "",1359    "host": "",1360    "hostname": "",1361    "port": "",1362    "pathname": "example.com/",1363    "search": "",1364    "hash": ""1365  },1366  {1367    "input": "javascript:example.com/",1368    "base": "http://example.org/foo/bar",1369    "href": "javascript:example.com/",1370    "origin": "null",1371    "protocol": "javascript:",1372    "username": "",1373    "password": "",1374    "host": "",1375    "hostname": "",1376    "port": "",1377    "pathname": "example.com/",1378    "search": "",1379    "hash": ""1380  },1381  {1382    "input": "mailto:example.com/",1383    "base": "http://example.org/foo/bar",1384    "href": "mailto:example.com/",1385    "origin": "null",1386    "protocol": "mailto:",1387    "username": "",1388    "password": "",1389    "host": "",1390    "hostname": "",1391    "port": "",1392    "pathname": "example.com/",1393    "search": "",1394    "hash": ""1395  },1396  {1397    "input": "/a/b/c",1398    "base": "http://example.org/foo/bar",1399    "href": "http://example.org/a/b/c",1400    "origin": "http://example.org",1401    "protocol": "http:",1402    "username": "",1403    "password": "",1404    "host": "example.org",1405    "hostname": "example.org",1406    "port": "",1407    "pathname": "/a/b/c",1408    "search": "",1409    "hash": ""1410  },1411  {1412    "input": "/a/ /c",1413    "base": "http://example.org/foo/bar",1414    "href": "http://example.org/a/%20/c",1415    "origin": "http://example.org",1416    "protocol": "http:",1417    "username": "",1418    "password": "",1419    "host": "example.org",1420    "hostname": "example.org",1421    "port": "",1422    "pathname": "/a/%20/c",1423    "search": "",1424    "hash": ""1425  },1426  {1427    "input": "/a%2fc",1428    "base": "http://example.org/foo/bar",1429    "href": "http://example.org/a%2fc",1430    "origin": "http://example.org",1431    "protocol": "http:",1432    "username": "",1433    "password": "",1434    "host": "example.org",1435    "hostname": "example.org",1436    "port": "",1437    "pathname": "/a%2fc",1438    "search": "",1439    "hash": ""1440  },1441  {1442    "input": "/a/%2f/c",1443    "base": "http://example.org/foo/bar",1444    "href": "http://example.org/a/%2f/c",1445    "origin": "http://example.org",1446    "protocol": "http:",1447    "username": "",1448    "password": "",1449    "host": "example.org",1450    "hostname": "example.org",1451    "port": "",1452    "pathname": "/a/%2f/c",1453    "search": "",1454    "hash": ""1455  },1456  {1457    "input": "#β",1458    "base": "http://example.org/foo/bar",1459    "href": "http://example.org/foo/bar#%CE%B2",1460    "origin": "http://example.org",1461    "protocol": "http:",1462    "username": "",1463    "password": "",1464    "host": "example.org",1465    "hostname": "example.org",1466    "port": "",1467    "pathname": "/foo/bar",1468    "search": "",1469    "hash": "#%CE%B2"1470  },1471  {1472    "input": "data:text/html,test#test",1473    "base": "http://example.org/foo/bar",1474    "href": "data:text/html,test#test",1475    "origin": "null",1476    "protocol": "data:",1477    "username": "",1478    "password": "",1479    "host": "",1480    "hostname": "",1481    "port": "",1482    "pathname": "text/html,test",1483    "search": "",1484    "hash": "#test"1485  },1486  {1487    "input": "tel:1234567890",1488    "base": "http://example.org/foo/bar",1489    "href": "tel:1234567890",1490    "origin": "null",1491    "protocol": "tel:",1492    "username": "",1493    "password": "",1494    "host": "",1495    "hostname": "",1496    "port": "",1497    "pathname": "1234567890",1498    "search": "",1499    "hash": ""1500  },1501  "# Based on https://felixfbecker.github.io/whatwg-url-custom-host-repro/",1502  {1503    "input": "ssh://example.com/foo/bar.git",1504    "base": "http://example.org/",1505    "href": "ssh://example.com/foo/bar.git",1506    "origin": "null",1507    "protocol": "ssh:",1508    "username": "",1509    "password": "",1510    "host": "example.com",1511    "hostname": "example.com",1512    "port": "",1513    "pathname": "/foo/bar.git",1514    "search": "",1515    "hash": ""1516  },1517  "# Based on http://trac.webkit.org/browser/trunk/LayoutTests/fast/url/file.html",1518  {1519    "input": "file:c:\\foo\\bar.html",1520    "base": "file:///tmp/mock/path",1521    "href": "file:///c:/foo/bar.html",1522    "protocol": "file:",1523    "username": "",1524    "password": "",1525    "host": "",1526    "hostname": "",1527    "port": "",1528    "pathname": "/c:/foo/bar.html",1529    "search": "",1530    "hash": ""1531  },1532  {1533    "input": "  File:c|////foo\\bar.html",1534    "base": "file:///tmp/mock/path",1535    "href": "file:///c:////foo/bar.html",1536    "protocol": "file:",1537    "username": "",1538    "password": "",1539    "host": "",1540    "hostname": "",1541    "port": "",1542    "pathname": "/c:////foo/bar.html",1543    "search": "",1544    "hash": ""1545  },1546  {1547    "input": "C|/foo/bar",1548    "base": "file:///tmp/mock/path",1549    "href": "file:///C:/foo/bar",1550    "protocol": "file:",1551    "username": "",1552    "password": "",1553    "host": "",1554    "hostname": "",1555    "port": "",1556    "pathname": "/C:/foo/bar",1557    "search": "",1558    "hash": ""1559  },1560  {1561    "input": "/C|\\foo\\bar",1562    "base": "file:///tmp/mock/path",1563    "href": "file:///C:/foo/bar",1564    "protocol": "file:",1565    "username": "",1566    "password": "",1567    "host": "",1568    "hostname": "",1569    "port": "",1570    "pathname": "/C:/foo/bar",1571    "search": "",1572    "hash": ""1573  },1574  {1575    "input": "//C|/foo/bar",1576    "base": "file:///tmp/mock/path",1577    "href": "file:///C:/foo/bar",1578    "protocol": "file:",1579    "username": "",1580    "password": "",1581    "host": "",1582    "hostname": "",1583    "port": "",1584    "pathname": "/C:/foo/bar",1585    "search": "",1586    "hash": ""1587  },1588  {1589    "input": "//server/file",1590    "base": "file:///tmp/mock/path",1591    "href": "file://server/file",1592    "protocol": "file:",1593    "username": "",1594    "password": "",1595    "host": "server",1596    "hostname": "server",1597    "port": "",1598    "pathname": "/file",1599    "search": "",1600    "hash": ""1601  },1602  {1603    "input": "\\\\server\\file",1604    "base": "file:///tmp/mock/path",1605    "href": "file://server/file",1606    "protocol": "file:",1607    "username": "",1608    "password": "",1609    "host": "server",1610    "hostname": "server",1611    "port": "",1612    "pathname": "/file",1613    "search": "",1614    "hash": ""1615  },1616  {1617    "input": "/\\server/file",1618    "base": "file:///tmp/mock/path",1619    "href": "file://server/file",1620    "protocol": "file:",1621    "username": "",1622    "password": "",1623    "host": "server",1624    "hostname": "server",1625    "port": "",1626    "pathname": "/file",1627    "search": "",1628    "hash": ""1629  },1630  {1631    "input": "file:///foo/bar.txt",1632    "base": "file:///tmp/mock/path",1633    "href": "file:///foo/bar.txt",1634    "protocol": "file:",1635    "username": "",1636    "password": "",1637    "host": "",1638    "hostname": "",1639    "port": "",1640    "pathname": "/foo/bar.txt",1641    "search": "",1642    "hash": ""1643  },1644  {1645    "input": "file:///home/me",1646    "base": "file:///tmp/mock/path",1647    "href": "file:///home/me",1648    "protocol": "file:",1649    "username": "",1650    "password": "",1651    "host": "",1652    "hostname": "",1653    "port": "",1654    "pathname": "/home/me",1655    "search": "",1656    "hash": ""1657  },1658  {1659    "input": "//",1660    "base": "file:///tmp/mock/path",1661    "href": "file:///",1662    "protocol": "file:",1663    "username": "",1664    "password": "",1665    "host": "",1666    "hostname": "",1667    "port": "",1668    "pathname": "/",1669    "search": "",1670    "hash": ""1671  },1672  {1673    "input": "///",1674    "base": "file:///tmp/mock/path",1675    "href": "file:///",1676    "protocol": "file:",1677    "username": "",1678    "password": "",1679    "host": "",1680    "hostname": "",1681    "port": "",1682    "pathname": "/",1683    "search": "",1684    "hash": ""1685  },1686  {1687    "input": "///test",1688    "base": "file:///tmp/mock/path",1689    "href": "file:///test",1690    "protocol": "file:",1691    "username": "",1692    "password": "",1693    "host": "",1694    "hostname": "",1695    "port": "",1696    "pathname": "/test",1697    "search": "",1698    "hash": ""1699  },1700  {1701    "input": "file://test",1702    "base": "file:///tmp/mock/path",1703    "href": "file://test/",1704    "protocol": "file:",1705    "username": "",1706    "password": "",1707    "host": "test",1708    "hostname": "test",1709    "port": "",1710    "pathname": "/",1711    "search": "",1712    "hash": ""1713  },1714  {1715    "input": "file://localhost",1716    "base": "file:///tmp/mock/path",1717    "href": "file:///",1718    "protocol": "file:",1719    "username": "",1720    "password": "",1721    "host": "",1722    "hostname": "",1723    "port": "",1724    "pathname": "/",1725    "search": "",1726    "hash": ""1727  },1728  {1729    "input": "file://localhost/",1730    "base": "file:///tmp/mock/path",1731    "href": "file:///",1732    "protocol": "file:",1733    "username": "",1734    "password": "",1735    "host": "",1736    "hostname": "",1737    "port": "",1738    "pathname": "/",1739    "search": "",1740    "hash": ""1741  },1742  {1743    "input": "file://localhost/test",1744    "base": "file:///tmp/mock/path",1745    "href": "file:///test",1746    "protocol": "file:",1747    "username": "",1748    "password": "",1749    "host": "",1750    "hostname": "",1751    "port": "",1752    "pathname": "/test",1753    "search": "",1754    "hash": ""1755  },1756  {1757    "input": "test",1758    "base": "file:///tmp/mock/path",1759    "href": "file:///tmp/mock/test",1760    "protocol": "file:",1761    "username": "",1762    "password": "",1763    "host": "",1764    "hostname": "",1765    "port": "",1766    "pathname": "/tmp/mock/test",1767    "search": "",1768    "hash": ""1769  },1770  {1771    "input": "file:test",1772    "base": "file:///tmp/mock/path",1773    "href": "file:///tmp/mock/test",1774    "protocol": "file:",1775    "username": "",1776    "password": "",1777    "host": "",1778    "hostname": "",1779    "port": "",1780    "pathname": "/tmp/mock/test",1781    "search": "",1782    "hash": ""1783  },1784  "# Based on http://trac.webkit.org/browser/trunk/LayoutTests/fast/url/script-tests/path.js",1785  {1786    "input": "http://example.com/././foo",1787    "base": null,1788    "href": "http://example.com/foo",1789    "origin": "http://example.com",1790    "protocol": "http:",1791    "username": "",1792    "password": "",1793    "host": "example.com",1794    "hostname": "example.com",1795    "port": "",1796    "pathname": "/foo",1797    "search": "",1798    "hash": ""1799  },1800  {1801    "input": "http://example.com/./.foo",1802    "base": null,1803    "href": "http://example.com/.foo",1804    "origin": "http://example.com",1805    "protocol": "http:",1806    "username": "",1807    "password": "",1808    "host": "example.com",1809    "hostname": "example.com",1810    "port": "",1811    "pathname": "/.foo",1812    "search": "",1813    "hash": ""1814  },1815  {1816    "input": "http://example.com/foo/.",1817    "base": null,1818    "href": "http://example.com/foo/",1819    "origin": "http://example.com",1820    "protocol": "http:",1821    "username": "",1822    "password": "",1823    "host": "example.com",1824    "hostname": "example.com",1825    "port": "",1826    "pathname": "/foo/",1827    "search": "",1828    "hash": ""1829  },1830  {1831    "input": "http://example.com/foo/./",1832    "base": null,1833    "href": "http://example.com/foo/",1834    "origin": "http://example.com",1835    "protocol": "http:",1836    "username": "",1837    "password": "",1838    "host": "example.com",1839    "hostname": "example.com",1840    "port": "",1841    "pathname": "/foo/",1842    "search": "",1843    "hash": ""1844  },1845  {1846    "input": "http://example.com/foo/bar/..",1847    "base": null,1848    "href": "http://example.com/foo/",1849    "origin": "http://example.com",1850    "protocol": "http:",1851    "username": "",1852    "password": "",1853    "host": "example.com",1854    "hostname": "example.com",1855    "port": "",1856    "pathname": "/foo/",1857    "search": "",1858    "hash": ""1859  },1860  {1861    "input": "http://example.com/foo/bar/../",1862    "base": null,1863    "href": "http://example.com/foo/",1864    "origin": "http://example.com",1865    "protocol": "http:",1866    "username": "",1867    "password": "",1868    "host": "example.com",1869    "hostname": "example.com",1870    "port": "",1871    "pathname": "/foo/",1872    "search": "",1873    "hash": ""1874  },1875  {1876    "input": "http://example.com/foo/..bar",1877    "base": null,1878    "href": "http://example.com/foo/..bar",1879    "origin": "http://example.com",1880    "protocol": "http:",1881    "username": "",1882    "password": "",1883    "host": "example.com",1884    "hostname": "example.com",1885    "port": "",1886    "pathname": "/foo/..bar",1887    "search": "",1888    "hash": ""1889  },1890  {1891    "input": "http://example.com/foo/bar/../ton",1892    "base": null,1893    "href": "http://example.com/foo/ton",1894    "origin": "http://example.com",1895    "protocol": "http:",1896    "username": "",1897    "password": "",1898    "host": "example.com",1899    "hostname": "example.com",1900    "port": "",1901    "pathname": "/foo/ton",1902    "search": "",1903    "hash": ""1904  },1905  {1906    "input": "http://example.com/foo/bar/../ton/../../a",1907    "base": null,1908    "href": "http://example.com/a",1909    "origin": "http://example.com",1910    "protocol": "http:",1911    "username": "",1912    "password": "",1913    "host": "example.com",1914    "hostname": "example.com",1915    "port": "",1916    "pathname": "/a",1917    "search": "",1918    "hash": ""1919  },1920  {1921    "input": "http://example.com/foo/../../..",1922    "base": null,1923    "href": "http://example.com/",1924    "origin": "http://example.com",1925    "protocol": "http:",1926    "username": "",1927    "password": "",1928    "host": "example.com",1929    "hostname": "example.com",1930    "port": "",1931    "pathname": "/",1932    "search": "",1933    "hash": ""1934  },1935  {1936    "input": "http://example.com/foo/../../../ton",1937    "base": null,1938    "href": "http://example.com/ton",1939    "origin": "http://example.com",1940    "protocol": "http:",1941    "username": "",1942    "password": "",1943    "host": "example.com",1944    "hostname": "example.com",1945    "port": "",1946    "pathname": "/ton",1947    "search": "",1948    "hash": ""1949  },1950  {1951    "input": "http://example.com/foo/%2e",1952    "base": null,1953    "href": "http://example.com/foo/",1954    "origin": "http://example.com",1955    "protocol": "http:",1956    "username": "",1957    "password": "",1958    "host": "example.com",1959    "hostname": "example.com",1960    "port": "",1961    "pathname": "/foo/",1962    "search": "",1963    "hash": ""1964  },1965  {1966    "input": "http://example.com/foo/%2e%2",1967    "base": null,1968    "href": "http://example.com/foo/%2e%2",1969    "origin": "http://example.com",1970    "protocol": "http:",1971    "username": "",1972    "password": "",1973    "host": "example.com",1974    "hostname": "example.com",1975    "port": "",1976    "pathname": "/foo/%2e%2",1977    "search": "",1978    "hash": ""1979  },1980  {1981    "input": "http://example.com/foo/%2e./%2e%2e/.%2e/%2e.bar",1982    "base": null,1983    "href": "http://example.com/%2e.bar",1984    "origin": "http://example.com",1985    "protocol": "http:",1986    "username": "",1987    "password": "",1988    "host": "example.com",1989    "hostname": "example.com",1990    "port": "",1991    "pathname": "/%2e.bar",1992    "search": "",1993    "hash": ""1994  },1995  {1996    "input": "http://example.com////../..",1997    "base": null,1998    "href": "http://example.com//",1999    "origin": "http://example.com",2000    "protocol": "http:",

The first 2,000 of 9,746 lines.