Link carries type="button" on an <a>

Đang mở
#553 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
html, ruby
Lĩnh vực
frontend, testing

Hướng nghiên cứu

On the 2.0 line, inspect link.rb and its default_attrs, then review the link/* snapshots. Run the strict golden HTML suite or the relevant link snapshot tests first. Done means the anchor no longer includes type="button" and the affected snapshots are re-recorded with the diff reviewed.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug
  • Where: link.rb default_attrs {type: "button", ...}, copied from Button. Snapshots link/*.
  • Effect: type on an anchor names the linked resource's MIME type; button is meaningless there. Invalid, harmless.
  • Fix: drop type: from Link's default_attrs; re-record link/*.

Surfaced by the strict lane of the golden HTML suite (PR #548), 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 snapshots that pin it are re-recorded there with the diff reviewed.

Source: design/v2/follow-up-issues.md.

Ngôn ngữ chính
Ruby
Star
1k
Fork
67
Merge trung bình
2 ngày 19 giờ
Pull request đã merge (30 ngày)
18

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ruby-ui/ruby_ui

Tất cả issue của ruby-ui/ruby_ui

Issue tương tự

Thêm issue về Ruby

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.