summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/shadow-dom/imperative-slot-assign-not-slotable-crash.html
blob: a493eeaf0095c96f6cb8cd8db0645dea93cc1823 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<link rel=author href="mailto:jarhar@chromium.org">
<link rel=help href="https://crbug.com/1240783">

<p>This test passes if it does not crash.</p>

<slot id=slot>
<object id=object>
<script>
onload = () => {
  const nonSlotable = document.createProcessingInstruction(undefined, undefined);
  document.getElementById('slot').assign(nonSlotable);
  document.getElementById('object').appendChild(nonSlotable);
}
</script>