We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
URL.canParse
1 parent 7808d12 commit 2e6ec1eCopy full SHA for 2e6ec1e
src/tests/url/url.html
@@ -99,3 +99,11 @@
99
_ = new URL("://foo.bar/path?query#fragment");
100
});
101
</script>
102
+
103
+<script id=URL.canParse>
104
+ testing.expectEqual(true, URL.canParse("https://lightpanda.io"));
105
+ testing.expectEqual(false, URL.canParse("://lightpanda.io"));
106
107
+ testing.expectEqual(true, URL.canParse("/home", "https://lightpanda.io"));
108
+ testing.expectEqual(false, URL.canParse("lightpanda.io", "https"));
109
+</script>
0 commit comments