1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-07-26 16:45:12 -04:00

[test] replaceWith testscase

This commit is contained in:
Witold Filipczyk 2022-11-17 18:41:40 +01:00
parent f85b22d9ad
commit 0bb9593041

View File

@ -0,0 +1,10 @@
<script>
const div = document.createElement("div");
const p = document.createElement("p");
div.appendChild(p);
const span = document.createElement("span");
p.replaceWith(span);
alert(div.outerHTML); //'<div><span></span></div>'
</script>