1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00
elinks/test/ecmascript/assert/element.id.html
2024-04-12 16:17:22 +02:00

15 lines
392 B
HTML

<html>
<body>
<a href="/">inner</a>
<button id="blabla">AAAAA</button>
<button>BBBB</button>
<script>
console.error('element.id.html');
console.assert(document.getElementById('blabla').innerHTML === 'AAAAA', 'AAAAA');
document.getElementsByTagName("A")[0].id = 'test';
console.assert(document.getElementById('test').innerHTML === 'inner', 'inner');
console.exit(0);
</script>
</body>
</html>