mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
15 lines
392 B
HTML
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>
|