<script> document.documentElement.appendChild(document.createElement('x')) a = document.createElement('x') document.documentElement.appendChild(a) new Range().getClientRects() document.documentElement.appendChild(document.createElement('tr')) b = document.createElement('input') b.type = 'date' document.documentElement.insertBefore(b, a) </script>