Found in the review of the capture-live-form-state branch.
formControlState() in ElementToSemanticEvents.kt calls isMasked() — a getComputedStyle — for every <input>, including checkbox / radio / submit / hidden / file, where formControlAttributes never reads masked.
Scenario: a search page with hundreds of filter checkboxes pays one computed-style lookup per checkbox, all discarded.
Fix: check the input type first, or compute masked lazily (e.g. pass a () -> Boolean, or let FormControls.kt expose which types need it).
Found in the review of the
capture-live-form-statebranch.formControlState()inElementToSemanticEvents.ktcallsisMasked()— agetComputedStyle— for every<input>, including checkbox / radio / submit / hidden / file, whereformControlAttributesnever readsmasked.Scenario: a search page with hundreds of filter checkboxes pays one computed-style lookup per checkbox, all discarded.
Fix: check the input type first, or compute
maskedlazily (e.g. pass a() -> Boolean, or letFormControls.ktexpose which types need it).