import { expect, test } from "bun:test"; import { jsx } from "../src/jsx-runtime.ts"; test("JSX rejects dynamic tag-name injection", () => { expect(() => jsx("div> { const html = jsx("div", { 'title" onmouseover="alert(1)': "x", title: "safe" }).toString(); expect(html).toBe('
'); });