1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-29 01:45:34 +00:00
elinks/test/ecmascript/assert/URL.html

9 lines
292 B
HTML
Raw Permalink Normal View History

2024-04-29 14:17:22 +00:00
<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();
2024-04-29 14:17:22 +00:00
</script>