1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00
elinks/test/ecmascript/assert/URL.html
2024-06-01 13:30:03 +02:00

9 lines
292 B
HTML

<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();
</script>