summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/forms/the-select-element/select-attribute-crash.html
blob: 5330411a5dcae0e9becb76bad1897c681dad7419 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<html class=test-wait>
<link rel=author href="mailto:jarhar@chromium.org">
<link rel=help href="https://issues.chromium.org/324325525">

<!-- Attempting to slot a child of <select> after initial slot assignment should not crash. -->

<select size=1>
  <optgroup></optgroup>
</select>
<script>
requestAnimationFrame(() => {
  document.querySelector('optgroup').setAttribute('slot', 'slot1');
  requestAnimationFrame(() => {
    document.documentElement.classList.remove('test-wait');
  });
});
</script>