`Input` defaults to `type="string"`
Nessuno ha ancora preso questa issue.
- Lingua principale
- Ruby
- Stelle
- 1k
- Fork
- 67
- Merge medio
- 3g 12h
- PR unite (30g)
- 14
Descrizione
- Where:
Input's defaulttype:ininput.rb, anddate_picker.rb's
input_attrs(type: "string"). Snapshotdate_picker/without_label. - Effect:
stringis not an HTML input type; browsers fall back to
text, so nothing breaks, but the attribute is invalid and will be
flagged by any validator, including Herb's. - Fix:
type: "text"in both places; re-record (on the 2.0 line)input/*,
date_picker/*and whatever else changes.
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia dal tipo predefinito in input.rb e da input_attrs in date_picker.rb, quindi esamina lo snapshot date_picker/without_label. Lavora sulla linea 2.0, registra nuovamente input/, date_picker/ e qualsiasi altro golden snapshot interessato, quindi esamina il diff per confermare che il tipo renderizzato sia text anziché string.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- html, ruby
- Ambito
- frontend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Attiva
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 82/100