Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#622 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@guidol-ive đang làm issue này rồi.

Từ ngày 28/10/2026.

  • #626 của @guidol-ive — đang mở

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
20/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
html, javascript
Lĩnh vực
frontend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
JavaScript
Star
5
Fork
9
Merge trung bình
18 giờ 7 phút
Pull request đã merge (30 ngày)
11

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của PlanBCode/hypha

Tất cả issue của PlanBCode/hypha

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.