import { isVisible } from "./detect"; import { extractDomain } from "../shared/domain"; function getRegistrableDomain(hostname: string): string { return extractDomain(hostname) ?? hostname; } export function checkFormAction(form: HTMLFormElement | null, expectedDomain: string): boolean { if (!form?.action) return true; try { const actionUrl = new URL(form.action); // PB-26-008: a