Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

WYMeditor image upload dialog: unclosed `<select>` gives a console warning

Aperta
#622 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@guidol-ive ci sta già lavorando.

Dal 28/10/2026.

  • #626 di @guidol-ive — aperta

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
20/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
html, javascript
Ambito
frontend

Direzione di ricerca

Read system/wymeditor/plugins/image_upload/jquery.wymeditor.image_upload.js at lines 67–72 and inspect how the image dialog HTML is assembled. The issue identifies the missing closing </select> after the last size option; the linked pull request #626 already contains the fix, so this issue is underway.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Component: Wymeditor Impact: Low Level: Easy Type: Bug Value: Users

Rule. HTML must be well formed; Chrome warns when the parser has to close an element itself:

An <input> tag was parsed within an open <select> tag which caused a </select> end tag to automatically be inserted.
Please add the missing </select> end tag, since this behavior may change in future versions of this browser,
possibly causing breakage on this page.

(console warning from system/assets/jquery-1.7.1.min.js:3, when jQuery parses the dialog HTML).

Place. system/wymeditor/plugins/image_upload/jquery.wymeditor.image_upload.js:67-72 (upstream/main d97ab7b):
the size select of the dialog is never closed:

'<select id="image_upload_size" name="thumbnailSize">' +
    '<option value="actual">{Actual}</option>' +
    ...
    '<option value="large">{Large}</option>' +
'</div>' +

This plugin file is maintained in Hypha (last changed in bc79e22, "Show errors in wymeditor image upload plugin").

Evidence. Member edits a text page (WYMeditor) and clicks the image button: the warning above, desktop and phone,
PHP 8.2 and 8.5.

Fix. Add '</select>' + after the last option.

A pull request with the fix follows (commit "wymeditor: Close the size select of the image upload dialog"),
tested on PHP 8.2 and 8.5 with a browser test that clicks the image button and reads the console (fails on main,
passes on the branch).

Related: #437 (outdated bundled WYMeditor and jQuery) and #520 (replacing WYMeditor); this is a one-line fix that is
useful until then.

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
19h 10m
PR unite (30g)
12

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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PlanBCode/hypha

Tutte le issue di PlanBCode/hypha

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.