1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-20 01:46:15 -04:00
elinks/test/ecmascript/assert/element.id.html
2024-06-01 13:30:03 +02:00

15 lines
391 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();
</script>
</body>
</html>