mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[test] replaceWith testscase
This commit is contained in:
parent
f85b22d9ad
commit
0bb9593041
10
test/ecmascript/replaceWith.html
Normal file
10
test/ecmascript/replaceWith.html
Normal 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>
|
Loading…
Reference in New Issue
Block a user