ladybird/Tests/LibWeb/Crash/HTML/no-list-owner-custom-element.html
Shannon Booth a14481ee05 LibWeb/HTML: Handle no parent element for Element::list_owner
Fixes a crash when running Speedometer 3.0 as reduced in the included
test case.
2025-04-18 10:48:47 +02:00

16 lines
422 B
HTML

<todo-item></todo-item>
<script>
const template = document.createElement("template");
template.innerHTML = `<li></li>`;
class TodoItem extends HTMLElement {
constructor() {
super();
const shadow = this.attachShadow({ mode: "open" });
const node = document.importNode(template.content, true);
shadow.appendChild(node);
}
}
customElements.define("todo-item", TodoItem);
</script>