1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-20 00:15:31 +00:00

[assert] URL.html

This commit is contained in:
Witold Filipczyk 2024-04-29 16:17:22 +02:00
parent 6f371d6002
commit 6b5ed8fa51

View File

@ -0,0 +1,8 @@
<script>
console.error("URL.html");
var url = new URL('https://www.example.com/cats');
console.assert(url.pathname === '/cats', url.pathname);
console.assert(url.protocol === 'https:', url.protocol);
console.assert(url.hostname === 'www.example.com', url.hostname);
console.exit(0);
</script>