1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[test] element.remove

This commit is contained in:
Witold Filipczyk 2024-07-06 12:22:28 +02:00
parent 2735f29b21
commit e8523fc1bf
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,9 @@
<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>

View File

@ -66,6 +66,7 @@ took = [
'element.previousSibling.html',
'element.querySelectorAll.html',
'element.querySelector.html',
'element.remove.html',
'element.setAttribute.html',
'element.textContent.html',
#'event.html',