`Input` defaults to `type="string"`
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Ruby
- Star
- 1k
- Fork
- 67
- Merge trung bình
- 3 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 14
Mô tả
- 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.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với kiểu mặc định trong input.rb và input_attrs trong date_picker.rb, sau đó kiểm tra snapshot date_picker/without_label. Làm việc trên dòng 2.0, ghi lại input/, date_picker/ và mọi golden snapshot bị ảnh hưởng khác, rồi xem xét diff để xác nhận kiểu được render là text chứ không phải string.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- html, ruby
- Lĩnh vực
- frontend
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 82/100