<body style="width:0"><strong>a b<span id="span"><script>
var code = document.createElement("code");
var small = document.createElement("span");
small.appendChild(document.createTextNode("x"));

document.implementation;

span.insertBefore(code, span.firstChild);
span.style.display = "contents";
window.scrollTo();
code.remove();
span.insertBefore(small, span.firstChild);
</script></strong>