Get Started page has four h1 headings (WCAG 1.3.1)
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 84/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Tranquilo
- Stack tecnológico
- html, markdown
- Área
- accessibility, web-dev
Línea de trabajo
Empieza inspeccionando los encabezados Markdown en _get_started/installation/mac.md, _get_started/installation/linux.md y _get_started/installation/windows.md; después, reproduce el problema con la consulta proporcionada para la consola del navegador en la página Get Started. Se considera terminado cuando la página renderizada tiene un h1, los tres encabezados de instalación aparecen como elementos h2 y la apariencia visual de la página no ha cambiado.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
🕋 Website
The Get Started page renders four <h1> elements, so the document has four competing top-level headings instead of one.
https://pytorch.org/get-started/locally/
h1 Get Started
h1 Installing on macOS
h1 Installing on Linux
h1 Installing on Windows
The three install headings come from this repo, and each opens with a markdown #:
_get_started/installation/mac.md_get_started/installation/linux.md_get_started/installation/windows.md
Those files are included into a page that already carries its own h1, so the # becomes a second, third and fourth top-level heading rather than a section heading under it.
Why it matters
Headings are how screen reader users navigate a long page. Most screen readers offer "jump to next heading" and a heading list, and both rely on the levels describing a real outline. Four h1s say the page has four separate documents in it, so the outline stops being useful for exactly the page a new user is most likely to be reading carefully while installing something.
This is WCAG 2.2 1.3.1 Info and Relationships, Level A.
To Reproduce
- Go to https://pytorch.org/get-started/locally/
- Run in the console:
[...document.querySelectorAll('h1')].map(h => h.textContent.trim())
- Four headings are returned rather than one.
Expected behavior
One h1 per page. The three install headings become ##, which puts them under "Get Started" where they belong and leaves the rendered page looking the same.
Two things I could not determine from outside
Both are about the page chrome rather than the content, and I suspect they are not owned by this repo, so I am asking rather than reporting:
- There are two
role="contentinfo"landmarks on every page I checked, one ondiv.nectar-global-section.before-footerand one on#footer-outer. There should only be one, otherwise landmark navigation offers two "footers". - The homepage
h1is "JOIN US", which is a conference banner rather than a description of the page.
Both look like they come from the WordPress theme wrapping the Jekyll content, not from this repository. If that is right, I would be glad to know where they should be raised instead.
Happy to open a pull request for the # to ## change if that is useful.
- Lenguaje dominante
- HTML
- Estrellas
- 286
- Forks
- 318
- Merge medio
- 5 d 18 h
- PR fusionados (30 d)
- 4
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de pytorch/pytorch.github.io
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 82/100
pytorch/pytorch.github.io#2135 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
pytorch/pytorch.github.io#2117 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
pytorch/pytorch.github.io#2065 ·
-
Dead linkAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
pytorch/pytorch.github.io#1256 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
pytorch/pytorch.github.io#979 ·
Todos los issues de pytorch/pytorch.github.io
Issues similares
-
bug to check
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
WikiEducationFoundation/WikiEduDashboard#7157 ·
Los mantenedores suelen responder en 1 día
-
Endpoint links in the tag operations list are below the 24px target sizePosiblemente ocupada @AdzerKI la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
issue: The chat page has no level-1 heading for screen readersPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug confirmed issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
open-webui/open-webui#32635 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
ai-driven-qa bug Minor
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
linagora/twake-tasks#435 ·
Los mantenedores suelen responder en 1 día