test(examples): guard browser e2e product path

req: examples/005

req: convention/002
This commit is contained in:
slhx agent
2026-05-11 10:27:09 +02:00
parent 63b559edb8
commit ebe7f58905
3 changed files with 46 additions and 11 deletions
+1 -4
View File
@@ -23,10 +23,7 @@
function formOwner(el) {
if (!el || el.tagName === "FORM") return el;
if (el.getAttribute && el.getAttribute("form")) return document.getElementById(el.getAttribute("form"));
const closest = el.closest ? el.closest("form") : null;
if (closest) return closest;
const root = rootOf(el);
return root && root.querySelector("form[data-slhx-form]");
return el.closest ? el.closest("form") : null;
}
function formHandleId(form) {