Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /shadow-dom/imperative-slot-assign-not-slotable-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel=author href="mailto:jarhar@chromium.org">
<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>