test(examples): guard browser e2e product path
req: examples/005 req: convention/002
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user