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

9 lines
292 B
HTML
Raw Normal View History

2024-04-29 10:17:22 -04: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 10:17:22 -04:00
</script>