Tags: the tag selector has no id or name (Chrome Issues panel on every page of a member)
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Idoneità per principianti
- 1/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- php
- Ambito
- accessibility
Direzione di ricerca
Read system/core/tags.php around line 109 in tagList() and inspect the linked pull request #623, which already contains the proposed fix. The issue reports a Chrome accessibility warning for the tag selector and supplies a browser test that fails on main and passes on the branch; completion is having an id and accessible name and confirming that test passes.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Rule. A form field must have an id or a name attribute, so the browser can autofill it and assistive
technology can address it. Chrome reports a field without either in its Issues panel
("A form field element should have an id or name attribute", FormEmptyIdAndNameAttributesForInputError).
Place. system/core/tags.php:109 (upstream/main d97ab7b), in tagList():
$html.= '<select class="remainingTags" onchange="selectTag(this, this.value);">';
Evidence. Logged in as a member or administrator, every page with a tag list (home page, text page, article,
mailing list, festival, ...) gets one Issues-panel report, on desktop and phone, PHP 8.2 and 8.5:
GenericIssue FormEmptyIdAndNameAttributesForInputError
<select class="remainingTags" onchange="selectTag(this, this.value);"><option value="_add_" selected="" disabled="">toevoegen...</option>
The select also has no label, so a screen reader announces it without a name.
Fix. Give the select an id and an accessible name. The tag list is on a page once (hypha_indexTags() and the
three Ajax answers that replace #tagList), so a fixed id is unique:
$html.= '<select id="remainingTags" class="remainingTags" aria-label="'.htmlspecialchars(__('tags')).'" onchange="selectTag(this, this.value);">';
No name: the select sits in the page-wide form, and a name would post its value with every command.
A pull request with the fix follows (commit "tags: Give the tag selector an id and an accessible name"), tested on PHP
8.2 and 8.5 with a browser test that reads the Issues panel of Chrome (fails on main, passes on the branch).
Found by a crawl of every page type with Chrome, reading the console and the Issues panel, as visitor, member and administrator, on desktop and phone.
🤖 Generated with Claude Code
- Lingua principale
- JavaScript
- Stelle
- 5
- Fork
- 9
- Merge medio
- 18h 7m
- PR unite (30g)
- 11
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PlanBCode/hypha
-
Impact: Medium Level: Easy Type: Bug Value: Users
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Impact: Low Level: Easy Pagetype: Festival Type: Bug Value: Coders
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Impact: Medium Level: Easy Pagetype: Mailinglist Type: Bug Value: Users
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 1 giorno
-
Impact: Low Level: Easy Type: Bug Value: Coders
Difficoltà 1/5 1-3 ore Idoneità per principianti 85/100
PlanBCode/hypha#586 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Impact: Medium Level: Easy Type: Bug Usecase: De Stadsbron Value: Visitors
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
PlanBCode/hypha#522 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di PlanBCode/hypha
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
bug documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
awslabs/visual-asset-management-system#880 ·
I maintainer di solito rispondono entro 1 giorno
-
04 type: enhancement 33 needs: docs
Difficoltà 2/5 1-3 ore Idoneità per principianti 63/100
plone/volto#8495 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
[BUG]: Workspace settings forms stay at 50% width on narrow screens and wrap text word by wordApertapossible bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
Mintplex-Labs/anything-llm#6889 ·
I maintainer di solito rispondono entro 1 giorno