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

Abierto
#553 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
html, ruby
Área
frontend, testing

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Ruby
Estrellas
1k
Forks
67
Merge medio
2 d 19 h
PR fusionados (30 d)
18

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ruby-ui/ruby_ui

Todos los issues de ruby-ui/ruby_ui

Issues similares

Más issues de Ruby

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.