|
734 | 734 | "search": "",
|
735 | 735 | "hash": ""
|
736 | 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 | + }, |
737 | 767 | {
|
738 | 768 | "input": "foo:/",
|
739 | 769 | "base": "http://example.org/foo/bar",
|
|
9627 | 9657 | "pathname": "",
|
9628 | 9658 | "search": "",
|
9629 | 9659 | "hash": ""
|
| 9660 | + }, |
| 9661 | + "Scheme relative path starting with multiple slashes", |
| 9662 | + { |
| 9663 | + "input": "///test", |
| 9664 | + "base": "http://example.org/", |
| 9665 | + "href": "http://test/", |
| 9666 | + "protocol": "http:", |
| 9667 | + "username": "", |
| 9668 | + "password": "", |
| 9669 | + "host": "test", |
| 9670 | + "hostname": "test", |
| 9671 | + "port": "", |
| 9672 | + "pathname": "/", |
| 9673 | + "search": "", |
| 9674 | + "hash": "" |
| 9675 | + }, |
| 9676 | + { |
| 9677 | + "input": "///\\//\\//test", |
| 9678 | + "base": "http://example.org/", |
| 9679 | + "href": "http://test/", |
| 9680 | + "protocol": "http:", |
| 9681 | + "username": "", |
| 9682 | + "password": "", |
| 9683 | + "host": "test", |
| 9684 | + "hostname": "test", |
| 9685 | + "port": "", |
| 9686 | + "pathname": "/", |
| 9687 | + "search": "", |
| 9688 | + "hash": "" |
| 9689 | + }, |
| 9690 | + { |
| 9691 | + "input": "///example.org/path", |
| 9692 | + "base": "http://example.org/", |
| 9693 | + "href": "http://example.org/path", |
| 9694 | + "protocol": "http:", |
| 9695 | + "username": "", |
| 9696 | + "password": "", |
| 9697 | + "host": "example.org", |
| 9698 | + "hostname": "example.org", |
| 9699 | + "port": "", |
| 9700 | + "pathname": "/path", |
| 9701 | + "search": "", |
| 9702 | + "hash": "" |
| 9703 | + }, |
| 9704 | + { |
| 9705 | + "input": "///example.org/../path", |
| 9706 | + "base": "http://example.org/", |
| 9707 | + "href": "http://example.org/path", |
| 9708 | + "protocol": "http:", |
| 9709 | + "username": "", |
| 9710 | + "password": "", |
| 9711 | + "host": "example.org", |
| 9712 | + "hostname": "example.org", |
| 9713 | + "port": "", |
| 9714 | + "pathname": "/path", |
| 9715 | + "search": "", |
| 9716 | + "hash": "" |
| 9717 | + }, |
| 9718 | + { |
| 9719 | + "input": "///example.org/../../", |
| 9720 | + "base": "http://example.org/", |
| 9721 | + "href": "http://example.org/", |
| 9722 | + "protocol": "http:", |
| 9723 | + "username": "", |
| 9724 | + "password": "", |
| 9725 | + "host": "example.org", |
| 9726 | + "hostname": "example.org", |
| 9727 | + "port": "", |
| 9728 | + "pathname": "/", |
| 9729 | + "search": "", |
| 9730 | + "hash": "" |
| 9731 | + }, |
| 9732 | + { |
| 9733 | + "input": "///example.org/../path/../../", |
| 9734 | + "base": "http://example.org/", |
| 9735 | + "href": "http://example.org/", |
| 9736 | + "protocol": "http:", |
| 9737 | + "username": "", |
| 9738 | + "password": "", |
| 9739 | + "host": "example.org", |
| 9740 | + "hostname": "example.org", |
| 9741 | + "port": "", |
| 9742 | + "pathname": "/", |
| 9743 | + "search": "", |
| 9744 | + "hash": "" |
| 9745 | + }, |
| 9746 | + { |
| 9747 | + "input": "///example.org/../path/../../path", |
| 9748 | + "base": "http://example.org/", |
| 9749 | + "href": "http://example.org/path", |
| 9750 | + "protocol": "http:", |
| 9751 | + "username": "", |
| 9752 | + "password": "", |
| 9753 | + "host": "example.org", |
| 9754 | + "hostname": "example.org", |
| 9755 | + "port": "", |
| 9756 | + "pathname": "/path", |
| 9757 | + "search": "", |
| 9758 | + "hash": "" |
| 9759 | + }, |
| 9760 | + { |
| 9761 | + "input": "/\\/\\//example.org/../path", |
| 9762 | + "base": "http://example.org/", |
| 9763 | + "href": "http://example.org/path", |
| 9764 | + "protocol": "http:", |
| 9765 | + "username": "", |
| 9766 | + "password": "", |
| 9767 | + "host": "example.org", |
| 9768 | + "hostname": "example.org", |
| 9769 | + "port": "", |
| 9770 | + "pathname": "/path", |
| 9771 | + "search": "", |
| 9772 | + "hash": "" |
| 9773 | + }, |
| 9774 | + { |
| 9775 | + "input": "///abcdef/../", |
| 9776 | + "base": "file:///", |
| 9777 | + "href": "file:///", |
| 9778 | + "protocol": "file:", |
| 9779 | + "username": "", |
| 9780 | + "password": "", |
| 9781 | + "host": "", |
| 9782 | + "hostname": "", |
| 9783 | + "port": "", |
| 9784 | + "pathname": "/", |
| 9785 | + "search": "", |
| 9786 | + "hash": "" |
| 9787 | + }, |
| 9788 | + { |
| 9789 | + "input": "/\\//\\/a/../", |
| 9790 | + "base": "file:///", |
| 9791 | + "href": "file://////", |
| 9792 | + "protocol": "file:", |
| 9793 | + "username": "", |
| 9794 | + "password": "", |
| 9795 | + "host": "", |
| 9796 | + "hostname": "", |
| 9797 | + "port": "", |
| 9798 | + "pathname": "////", |
| 9799 | + "search": "", |
| 9800 | + "hash": "" |
| 9801 | + }, |
| 9802 | + { |
| 9803 | + "input": "//a/../", |
| 9804 | + "base": "file:///", |
| 9805 | + "href": "file://a/", |
| 9806 | + "protocol": "file:", |
| 9807 | + "username": "", |
| 9808 | + "password": "", |
| 9809 | + "host": "a", |
| 9810 | + "hostname": "a", |
| 9811 | + "port": "", |
| 9812 | + "pathname": "/", |
| 9813 | + "search": "", |
| 9814 | + "hash": "" |
9630 | 9815 | }
|
9631 | 9816 | ]
|
0 commit comments