| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3505782 commit 1c1bd7c
6 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,7 +27,7 @@ Last update: | |||
| 27 | 27 | - resource-timing: https://github.com/web-platform-tests/wpt/tree/22d38586d0/resource-timing | |
| 28 | 28 | - resources: https://github.com/web-platform-tests/wpt/tree/1e140d63ec/resources | |
| 29 | 29 | - streams: https://github.com/web-platform-tests/wpt/tree/9b03282a99/streams | |
| 30 | - - url: https://github.com/web-platform-tests/wpt/tree/0f550ab9f5/url | ||
| 30 | + - url: https://github.com/web-platform-tests/wpt/tree/7f369fef2b/url | ||
| 31 | 31 | - user-timing: https://github.com/web-platform-tests/wpt/tree/5ae85bf826/user-timing | |
| 32 | 32 | - wasm/jsapi: https://github.com/web-platform-tests/wpt/tree/cde25e7e3c/wasm/jsapi | |
| 33 | 33 | - wasm/webapi: https://github.com/web-platform-tests/wpt/tree/fd1b23eeaa/wasm/webapi | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,4 @@ | |||
| 1 | + features: | ||
| 2 | + - name: url-canparse | ||
| 3 | + files: | ||
| 4 | + - url-statics-canparse.* | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,3 +11,13 @@ | |||
| 11 | 11 | <div id=log></div> | |
| 12 | 12 | <script src=resources/a-element.js></script> | |
| 13 | 13 | <!-- Other dependencies: resources/urltestdata.json --> | |
| 14 | + | ||
| 15 | + | ||
| 16 | + <a id="multline-entity" download="multline-entity.txt" href="data:text/plain;charset=utf-8,first%20line second%20line"> Link with embedded \n is parsed correctly </a> | ||
| 17 | + | ||
| 18 | + <script type="text/javascript"> | ||
| 19 | + test(function() { | ||
| 20 | + const link = document.getElementById("multline-entity"); | ||
| 21 | + assert_equals(link.href, "data:text/plain;charset=utf-8,first%20linesecond%20line"); | ||
| 22 | + }, "Test that embedded 0x0A is stripped"); | ||
| 23 | + </script> | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -825,6 +825,17 @@ | |||
| 825 | 825 | "port": "" | |
| 826 | 826 | } | |
| 827 | 827 | }, | |
| 828 | + { | ||
| 829 | + "comment": "Stuff after a ? delimiter is ignored, trailing 'port'", | ||
| 830 | + "href": "http://example.net/path", | ||
| 831 | + "new_value": "example.com?stuff:8080", | ||
| 832 | + "expected": { | ||
| 833 | + "href": "http://example.com/path", | ||
| 834 | + "host": "example.com", | ||
| 835 | + "hostname": "example.com", | ||
| 836 | + "port": "" | ||
| 837 | + } | ||
| 838 | + }, | ||
| 828 | 839 | { | |
| 829 | 840 | "comment": "Stuff after a ? delimiter is ignored", | |
| 830 | 841 | "href": "http://example.net/path", | |
@@ -924,6 +935,39 @@ | |||
| 924 | 935 | "port": "8080" | |
| 925 | 936 | } | |
| 926 | 937 | }, | |
| 938 | + { | ||
| 939 | + "comment": "Anything other than ASCII digit stops the port parser in a setter but is not an error", | ||
| 940 | + "href": "http://example.net:8080", | ||
| 941 | + "new_value": "example.com:invalid", | ||
| 942 | + "expected": { | ||
| 943 | + "href": "http://example.com:8080/", | ||
| 944 | + "host": "example.com:8080", | ||
| 945 | + "hostname": "example.com", | ||
| 946 | + "port": "8080" | ||
| 947 | + } | ||
| 948 | + }, | ||
| 949 | + { | ||
| 950 | + "comment": "Anything other than ASCII digit stops the port parser in a setter but is not an error", | ||
| 951 | + "href": "http://example.net:8080/test", | ||
| 952 | + "new_value": "[::1]:invalid", | ||
| 953 | + "expected": { | ||
| 954 | + "href": "http://[::1]:8080/test", | ||
| 955 | + "host": "[::1]:8080", | ||
| 956 | + "hostname": "[::1]", | ||
| 957 | + "port": "8080" | ||
| 958 | + } | ||
| 959 | + }, | ||
| 960 | + { | ||
| 961 | + "comment": "IPv6 without port", | ||
| 962 | + "href": "http://example.net:8080/test", | ||
| 963 | + "new_value": "[::1]", | ||
| 964 | + "expected": { | ||
| 965 | + "href": "http://[::1]:8080/test", | ||
| 966 | + "host": "[::1]:8080", | ||
| 967 | + "hostname": "[::1]", | ||
| 968 | + "port": "8080" | ||
| 969 | + } | ||
| 970 | + }, | ||
| 927 | 971 | { | |
| 928 | 972 | "comment": "Port numbers are 16 bit integers", | |
| 929 | 973 | "href": "http://example.net/path", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1751,6 +1751,76 @@ | |||
| 1751 | 1751 | "search": "", | |
| 1752 | 1752 | "hash": "" | |
| 1753 | 1753 | }, | |
| 1754 | + { | ||
| 1755 | + "input": "file:///w|m", | ||
| 1756 | + "base": null, | ||
| 1757 | + "href": "file:///w|m", | ||
| 1758 | + "protocol": "file:", | ||
| 1759 | + "username": "", | ||
| 1760 | + "password": "", | ||
| 1761 | + "host": "", | ||
| 1762 | + "hostname": "", | ||
| 1763 | + "port": "", | ||
| 1764 | + "pathname": "/w|m", | ||
| 1765 | + "search": "", | ||
| 1766 | + "hash": "" | ||
| 1767 | + }, | ||
| 1768 | + { | ||
| 1769 | + "input": "file:///w||m", | ||
| 1770 | + "base": null, | ||
| 1771 | + "href": "file:///w||m", | ||
| 1772 | + "protocol": "file:", | ||
| 1773 | + "username": "", | ||
| 1774 | + "password": "", | ||
| 1775 | + "host": "", | ||
| 1776 | + "hostname": "", | ||
| 1777 | + "port": "", | ||
| 1778 | + "pathname": "/w||m", | ||
| 1779 | + "search": "", | ||
| 1780 | + "hash": "" | ||
| 1781 | + }, | ||
| 1782 | + { | ||
| 1783 | + "input": "file:///w|/m", | ||
| 1784 | + "base": null, | ||
| 1785 | + "href": "file:///w:/m", | ||
| 1786 | + "protocol": "file:", | ||
| 1787 | + "username": "", | ||
| 1788 | + "password": "", | ||
| 1789 | + "host": "", | ||
| 1790 | + "hostname": "", | ||
| 1791 | + "port": "", | ||
| 1792 | + "pathname": "/w:/m", | ||
| 1793 | + "search": "", | ||
| 1794 | + "hash": "" | ||
| 1795 | + }, | ||
| 1796 | + { | ||
| 1797 | + "input": "file:C|/m/", | ||
| 1798 | + "base": null, | ||
| 1799 | + "href": "file:///C:/m/", | ||
| 1800 | + "protocol": "file:", | ||
| 1801 | + "username": "", | ||
| 1802 | + "password": "", | ||
| 1803 | + "host": "", | ||
| 1804 | + "hostname": "", | ||
| 1805 | + "port": "", | ||
| 1806 | + "pathname": "/C:/m/", | ||
| 1807 | + "search": "", | ||
| 1808 | + "hash": "" | ||
| 1809 | + }, | ||
| 1810 | + { | ||
| 1811 | + "input": "file:C||/m/", | ||
| 1812 | + "base": null, | ||
| 1813 | + "href": "file:///C||/m/", | ||
| 1814 | + "protocol": "file:", | ||
| 1815 | + "username": "", | ||
| 1816 | + "password": "", | ||
| 1817 | + "host": "", | ||
| 1818 | + "hostname": "", | ||
| 1819 | + "port": "", | ||
| 1820 | + "pathname": "/C||/m/", | ||
| 1821 | + "search": "", | ||
| 1822 | + "hash": "" | ||
| 1823 | + }, | ||
| 1754 | 1824 | "# Based on http://trac.webkit.org/browser/trunk/LayoutTests/fast/url/script-tests/path.js", | |
| 1755 | 1825 | { | |
| 1756 | 1826 | "input": "http://example.com/././foo", | |
@@ -3560,6 +3630,34 @@ | |||
| 3560 | 3630 | "search": "", | |
| 3561 | 3631 | "hash": "" | |
| 3562 | 3632 | }, | |
| 3633 | + { | ||
| 3634 | + "input": "file:.", | ||
| 3635 | + "base": null, | ||
| 3636 | + "href": "file:///", | ||
| 3637 | + "protocol": "file:", | ||
| 3638 | + "username": "", | ||
| 3639 | + "password": "", | ||
| 3640 | + "host": "", | ||
| 3641 | + "hostname": "", | ||
| 3642 | + "port": "", | ||
| 3643 | + "pathname": "/", | ||
| 3644 | + "search": "", | ||
| 3645 | + "hash": "" | ||
| 3646 | + }, | ||
| 3647 | + { | ||
| 3648 | + "input": "file:.", | ||
| 3649 | + "base": "http://www.example.com/test", | ||
| 3650 | + "href": "file:///", | ||
| 3651 | + "protocol": "file:", | ||
| 3652 | + "username": "", | ||
| 3653 | + "password": "", | ||
| 3654 | + "host": "", | ||
| 3655 | + "hostname": "", | ||
| 3656 | + "port": "", | ||
| 3657 | + "pathname": "/", | ||
| 3658 | + "search": "", | ||
| 3659 | + "hash": "" | ||
| 3660 | + }, | ||
| 3563 | 3661 | "# Based on http://trac.webkit.org/browser/trunk/LayoutTests/fast/url/host.html", | |
| 3564 | 3662 | "Basic canonicalization, uppercase should be converted to lowercase", | |
| 3565 | 3663 | { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -68,7 +68,7 @@ | |||
| 68 | 68 | "path": "streams" | |
| 69 | 69 | }, | |
| 70 | 70 | "url": { | |
| 71 | - "commit": "c2d7e70b52cbd9a5b938aa32f37078d7a71e0b21", | ||
| 71 | + "commit": "7f369fef2b6f740a0738510331274bf2cbf7b509", | ||
| 72 | 72 | "path": "url" | |
| 73 | 73 | }, | |
| 74 | 74 | "user-timing": { | |
@@ -95,4 +95,4 @@ | |||
| 95 | 95 | "commit": "e97fac4791931fb7455ba3fad759d362c7108b09", | |
| 96 | 96 | "path": "webmessaging/broadcastchannel" | |
| 97 | 97 | } | |
| 98 | - } | ||
| 98 | + } | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments