<!DOCTYPE html>
<style>
/* Disable kerning because kerning may differ for different node tree. */
html { font-kerning: none; }
</style>
<body>
<span>
    <span id="A">A</span>
    <span>B</span>
</span>
<script>
var a = document.getElementById('A');
var d = document.createElement('div');
d.style.position = "absolute";
a.parentNode.insertBefore(d, a.nextSibling);
</script>
