focused-element-move-documents-crash.html (536B)
1 <!DOCTYPE html> 2 <link rel="author" title="Joey Arhar" href="mailto:jarhar@chromium.org"> 3 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1172828"> 4 5 <!-- No crash should occur if a focused element is moved to another document. --> 6 7 <div id=editable contenteditable=> 8 9 <script> 10 editable.addEventListener('blur', function() { 11 document.execCommand('InsertText', false, '\t'); 12 }); 13 editable.focus(); 14 const secondDoc = document.implementation.createDocument('', null); 15 secondDoc.appendChild(editable); 16 </script>