select-attribute-crash.html (519B)
1 <!DOCTYPE html> 2 <html class=test-wait> 3 <link rel=author href="mailto:jarhar@chromium.org"> 4 <link rel=help href="https://issues.chromium.org/324325525"> 5 6 <!-- Attempting to slot a child of <select> after initial slot assignment should not crash. --> 7 8 <select size=1> 9 <optgroup></optgroup> 10 </select> 11 <script> 12 requestAnimationFrame(() => { 13 document.querySelector('optgroup').setAttribute('slot', 'slot1'); 14 requestAnimationFrame(() => { 15 document.documentElement.classList.remove('test-wait'); 16 }); 17 }); 18 </script>