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

Offen
#553 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
55/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Veraltet
Tech-Stack
html, ruby
Bereich
frontend, testing

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Ruby
Sterne
1k
Forks
67
Ø Merge
2 T. 19 Std.
Gemergte PRs (30 T.)
18

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus ruby-ui/ruby_ui

Alle Issues in ruby-ui/ruby_ui

Ähnliche Issues

Weitere Issues zu Ruby

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.