Skip to content

Remove dead selector aliases - #1018

Merged
tagliala merged 1 commit into
mainfrom
chore/remove-dead-code
May 27, 2026
Merged

tagliala merged 1 commit into
mainfrom
chore/remove-dead-code

Conversation

@tagliala

Copy link
Copy Markdown
Contributor

Drop selectors.inputs and selectors.validate_inputs from the runtime surface. They stopped participating in validation when 1e22209 replaced jQuery traversal with form.elements, DOM helpers, and dataset.csvValidate checks, leaving selectors.forms as the only remaining selector used at runtime.

Keeping these dead fields around suggests selector-driven behavior is still supported when the 24.x API is intentionally DOM-first.

Reintroducing them would be a regression because it encourages users to couple to unsupported internals and points the runtime back toward the old descendant-query model that the jQuery removal intentionally removed.

It is now possible to validate form-associated input that lives outside the form subtree. That behavior is new with the form.elements-based implementation and was not possible before, because the old jQuery.find(...) path could only reach descendants of the form element.

Drop `selectors.inputs` and `selectors.validate_inputs` from the runtime
surface. They stopped participating in validation when 1e22209 replaced
jQuery traversal with `form.elements`, DOM helpers, and
`dataset.csvValidate` checks, leaving `selectors.forms` as the only
remaining selector used at runtime.

Keeping these dead fields around suggests selector-driven behavior is
still supported when the 24.x API is intentionally DOM-first.

Reintroducing them would be a regression because it encourages users
to couple to unsupported internals and points the runtime back toward
the old descendant-query model that the jQuery removal intentionally
removed.

It is now possible to validate form-associated input that lives outside
the form subtree. That behavior is new with the `form.elements`-based
implementation and was not possible before, because the old
`jQuery.find(...)` path could only reach descendants of the form
element.
@tagliala
tagliala merged commit a053aa0 into main May 27, 2026
22 checks passed
@tagliala
tagliala deleted the chore/remove-dead-code branch May 27, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant