|
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",
|
|
9529 | 9559 | "pathname": "",
|
9530 | 9560 | "search": "",
|
9531 | 9561 | "hash": ""
|
| 9562 | + }, |
| 9563 | + "Scheme relative path starting with multiple slashes", |
| 9564 | + { |
| 9565 | + "input": "///test", |
| 9566 | + "base": "http://example.org/", |
| 9567 | + "href": "http://test/", |
| 9568 | + "protocol": "http:", |
| 9569 | + "username": "", |
| 9570 | + "password": "", |
| 9571 | + "host": "test", |
| 9572 | + "hostname": "test", |
| 9573 | + "port": "", |
| 9574 | + "pathname": "/", |
| 9575 | + "search": "", |
| 9576 | + "hash": "" |
| 9577 | + }, |
| 9578 | + { |
| 9579 | + "input": "///\\//\\//test", |
| 9580 | + "base": "http://example.org/", |
| 9581 | + "href": "http://test/", |
| 9582 | + "protocol": "http:", |
| 9583 | + "username": "", |
| 9584 | + "password": "", |
| 9585 | + "host": "test", |
| 9586 | + "hostname": "test", |
| 9587 | + "port": "", |
| 9588 | + "pathname": "/", |
| 9589 | + "search": "", |
| 9590 | + "hash": "" |
| 9591 | + }, |
| 9592 | + { |
| 9593 | + "input": "///example.org/path", |
| 9594 | + "base": "http://example.org/", |
| 9595 | + "href": "http://example.org/path", |
| 9596 | + "protocol": "http:", |
| 9597 | + "username": "", |
| 9598 | + "password": "", |
| 9599 | + "host": "example.org", |
| 9600 | + "hostname": "example.org", |
| 9601 | + "port": "", |
| 9602 | + "pathname": "/path", |
| 9603 | + "search": "", |
| 9604 | + "hash": "" |
| 9605 | + }, |
| 9606 | + { |
| 9607 | + "input": "///example.org/../path", |
| 9608 | + "base": "http://example.org/", |
| 9609 | + "href": "http://example.org/path", |
| 9610 | + "protocol": "http:", |
| 9611 | + "username": "", |
| 9612 | + "password": "", |
| 9613 | + "host": "example.org", |
| 9614 | + "hostname": "example.org", |
| 9615 | + "port": "", |
| 9616 | + "pathname": "/path", |
| 9617 | + "search": "", |
| 9618 | + "hash": "" |
| 9619 | + }, |
| 9620 | + { |
| 9621 | + "input": "///example.org/../../", |
| 9622 | + "base": "http://example.org/", |
| 9623 | + "href": "http://example.org/", |
| 9624 | + "protocol": "http:", |
| 9625 | + "username": "", |
| 9626 | + "password": "", |
| 9627 | + "host": "example.org", |
| 9628 | + "hostname": "example.org", |
| 9629 | + "port": "", |
| 9630 | + "pathname": "/", |
| 9631 | + "search": "", |
| 9632 | + "hash": "" |
| 9633 | + }, |
| 9634 | + { |
| 9635 | + "input": "///example.org/../path/../../", |
| 9636 | + "base": "http://example.org/", |
| 9637 | + "href": "http://example.org/", |
| 9638 | + "protocol": "http:", |
| 9639 | + "username": "", |
| 9640 | + "password": "", |
| 9641 | + "host": "example.org", |
| 9642 | + "hostname": "example.org", |
| 9643 | + "port": "", |
| 9644 | + "pathname": "/", |
| 9645 | + "search": "", |
| 9646 | + "hash": "" |
| 9647 | + }, |
| 9648 | + { |
| 9649 | + "input": "///example.org/../path/../../path", |
| 9650 | + "base": "http://example.org/", |
| 9651 | + "href": "http://example.org/path", |
| 9652 | + "protocol": "http:", |
| 9653 | + "username": "", |
| 9654 | + "password": "", |
| 9655 | + "host": "example.org", |
| 9656 | + "hostname": "example.org", |
| 9657 | + "port": "", |
| 9658 | + "pathname": "/path", |
| 9659 | + "search": "", |
| 9660 | + "hash": "" |
| 9661 | + }, |
| 9662 | + { |
| 9663 | + "input": "/\\/\\//example.org/../path", |
| 9664 | + "base": "http://example.org/", |
| 9665 | + "href": "http://example.org/path", |
| 9666 | + "protocol": "http:", |
| 9667 | + "username": "", |
| 9668 | + "password": "", |
| 9669 | + "host": "example.org", |
| 9670 | + "hostname": "example.org", |
| 9671 | + "port": "", |
| 9672 | + "pathname": "/path", |
| 9673 | + "search": "", |
| 9674 | + "hash": "" |
| 9675 | + }, |
| 9676 | + { |
| 9677 | + "input": "///abcdef/../", |
| 9678 | + "base": "file:///", |
| 9679 | + "href": "file:///", |
| 9680 | + "protocol": "file:", |
| 9681 | + "username": "", |
| 9682 | + "password": "", |
| 9683 | + "host": "", |
| 9684 | + "hostname": "", |
| 9685 | + "port": "", |
| 9686 | + "pathname": "/", |
| 9687 | + "search": "", |
| 9688 | + "hash": "" |
| 9689 | + }, |
| 9690 | + { |
| 9691 | + "input": "/\\//\\/a/../", |
| 9692 | + "base": "file:///", |
| 9693 | + "href": "file://////", |
| 9694 | + "protocol": "file:", |
| 9695 | + "username": "", |
| 9696 | + "password": "", |
| 9697 | + "host": "", |
| 9698 | + "hostname": "", |
| 9699 | + "port": "", |
| 9700 | + "pathname": "////", |
| 9701 | + "search": "", |
| 9702 | + "hash": "" |
| 9703 | + }, |
| 9704 | + { |
| 9705 | + "input": "//a/../", |
| 9706 | + "base": "file:///", |
| 9707 | + "href": "file://a/", |
| 9708 | + "protocol": "file:", |
| 9709 | + "username": "", |
| 9710 | + "password": "", |
| 9711 | + "host": "a", |
| 9712 | + "hostname": "a", |
| 9713 | + "port": "", |
| 9714 | + "pathname": "/", |
| 9715 | + "search": "", |
| 9716 | + "hash": "" |
9532 | 9717 | }
|
9533 | 9718 | ]
|
0 commit comments