1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-20 01:46:15 -04:00
elinks/test/ecmascript/assert/element.remove.html
2024-07-06 12:22:28 +02:00

10 lines
317 B
HTML

<html><body><div id="div"><p id="demo">aaa</p>BBB</div>
<script>
console.error("element.remove.html");
document.getElementById('demo').remove();
console.assert(document.getElementById('div').outerHTML === '<div id="div">BBB</div>', document.getElementById('div').outerHTML);
console.exit();
</script>
</body>
</html>