import { escapeHtml, page, withRun } from "../../lib/fixtures.mjs"; export default { id: "tabs", routes: ["/tabs", "/tabs/child"], render({ pathname, runId }) { if (pathname === "/tabs") { return page({ title: "Tab Lab", body: `Tab LabKeep this original tab open while visiting the child page in a new tab.Child URL: ${escapeHtml(withRun("/tabs/child", runId))}`, }); } return page({ title: "Child Tab", body: `Child TabTAB-29Mark child visitedMarked`, script: `document.querySelector("#mark-child").addEventListener("click", () => { document.querySelector("#child-status").hidden = false; browserEval.send("tabs.child_marked"); });`, }); }, };
Keep this original tab open while visiting the child page in a new tab.
Child URL: ${escapeHtml(withRun("/tabs/child", runId))}
${escapeHtml(withRun("/tabs/child", runId))}
TAB-29
Marked