1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05: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>