1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00
elinks/test/ecmascript/replaceWith.html
Witold Filipczyk 72aa206ff7 [spidermonkey] replaceWith
It does not work without assignment in test case, but small progress.
2022-11-17 21:03:13 +01:00

10 lines
264 B
HTML

<script>
var div = document.createElement("div");
var p = document.createElement("p");
p = div.appendChild(p); // TODO without assignment
var span = document.createElement("span");
p.replaceWith(span);
alert(div.outerHTML); //'<div><span></span></div>'
</script>