DataTable nests `<form>` inside `<form>`
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 68/100
- Type d'issue
- Bug
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- javascript, ruby
Piste de recherche
Commencez par DataTableForm, DataTableSearch, DataTablePerPageSelect et data_table_search_controller.js, puis examinez le snapshot data_table/full_frame et les autres snapshots data_table. Confirmez la structure du formulaire rendu et la manière dont requestSubmit() sélectionne sa cible. C’est terminé lorsque les templates 2.0 évitent les formulaires imbriqués et que les snapshots data_table/* sont réenregistrés et vérifiés avec la sortie corrigée.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
- Where:
DataTableFormwraps the table;DataTableSearchand
DataTablePerPageSelecteach render their own<form>inside it.
Snapshotdata_table/full_frameholds three<formelements. - Effect: nested forms are invalid HTML. The parser ignores the nested
search form's start tag — with its attributes and its
data-controller="ruby-ui--data-table-search"— and its end tag closes the
outer bulk form early, so the search controller never connects and the
per-page form that follows ends up outside the bulk form. The controller's
this.element.requestSubmit()therefore never runs at all. (The golden
snapshot keeps all three forms because the suite parses inside a
<template>, where the form-pointer rule does not apply.) - Fix: render the search and per-page forms outside the bulk form, or
make their controls reference it with theform=attribute; re-record (on the 2.0 line)
data_table/*. - 2.0 note: Herb's
NestingValidatorwill likely reject this at compile
time, so the DataTable migration ports the three forms as they are and then
restructures them — a template adjustment with a reviewed snapshot change,
on the 2.0 line, sincemainstays as is.
Surfaced by the golden HTML suite (PR #536), which pins what 1.6 renders today — this defect included. Per maintainer decision (2026-09-19) main stays as is: this is addressed on the 2.0 line, and the golden snapshot that pins it is re-recorded there with the diff reviewed.
Source: design/v2/follow-up-issues.md.
- Langage dominant
- Ruby
- Étoiles
- 1k
- Forks
- 67
- Merge moyen
- 2 j 19 h
- PR mergées (30 j)
- 18
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de ruby-ui/ruby_ui
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 55/100
-
bug
Difficulté 1/5 1-3 heures Accessibilité débutants 35/100
Toutes les issues de ruby-ui/ruby_ui
Issues similaires
-
user-reported
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
Kong/developer.konghq.com#7316 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
TheOdinProject/curriculum#31408 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
-
CI: json 3.0.2 removed `quirks_mode`, breaking ActiveSupport's JSON encoder on every test job Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
bensheldon/good_job#1816 · 5 commentaires ·
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
notch8/utk_knapsack#148 ·