Commit a053aa0
authored
Remove dead selector aliases (#1018)
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.1 parent a6b11f3 commit a053aa0
5 files changed
Lines changed: 33 additions & 8 deletions
File tree
- dist
- src
- test/javascript/public/test/form_builders
- vendor/assets/javascripts
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
254 | | - | |
255 | 253 | | |
256 | 254 | | |
257 | 255 | | |
| |||
Lines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
207 | 240 | | |
208 | 241 | | |
209 | 242 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | | - | |
307 | | - | |
308 | 306 | | |
309 | 307 | | |
310 | 308 | | |
| |||
0 commit comments