blob: 70fe8c11262111933e80af5393cd34d81bd1e670 (
plain)
1
2
3
4
5
6
7
8
9
|
<!DOCTYPE html>
<script>
function test() {
document.body.offsetHeight;
document.body.attachShadow({mode: 'closed'});
iframe.contentDocument.caretRangeFromPoint(0, 0);
}
</script>
<iframe id="iframe" onload="test()"></iframe>
|