`Input` defaults to `type="string"`
オープン
まだ誰も着手していません。
bug
- 主要言語
- Ruby
- スター
- 1k
- フォーク
- 67
- 平均マージ
- 3日 12時間
- マージ済み PR(30日)
- 14
説明
- 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.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
input.rb のデフォルトの型と date_picker.rb の input_attrs から始め、次に date_picker/without_label のスナップショットを確認します。2.0 ラインで作業し、input/、date_picker/、およびその他の影響を受ける golden snapshot を再記録して、レンダリングされた型が string ではなく text であることを diff で確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- html, ruby
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 活発
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 82/100