buildClassifierInput function presentation ✓ 100.0%
Last updated: 2026-03-01T23:25:47.102Z
Metrics
LOC: 7
Complexity: 2
Params: 1
Coverage: 100.0% (1/1 lines, 12x executed)
Signature
buildClassifierInput(field: FormField): : FieldClassifierInput
Summary
Extracts FieldClassifierInput from a live DOM FormField.
Source Code
function buildClassifierInput(field: FormField): FieldClassifierInput {
return {
elementHtml: field.element.outerHTML,
contextHtml: getContextHtml(field.element as HTMLElement) ?? undefined,
signals: field.contextSignals,
};
}
Dependencies (Outgoing)
| Target | Type |
|---|---|
| getContextHtml | calls |
Impact (Incoming)
| Source | Type |
|---|---|
| detectAsync | calls |