WYMeditor image upload dialog: unclosed `<select>` gives a console warning
Maintainer thường phản hồi trong vòng 1 ngày
Đá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ả
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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PlanBCode/hypha
-
Component: User interface Impact: Low Level: Easy Pagetype: Peer reviewed article Type: Bug Value: Visitors
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Impact: Medium Level: Easy Type: Bug Value: Users
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Impact: Low Level: Easy Pagetype: Festival Type: Bug Value: Coders
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Impact: Medium Level: Easy Pagetype: Mailinglist Type: Bug Value: Users
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Impact: Low Level: Easy Type: Bug Value: Coders
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
PlanBCode/hypha#586 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của PlanBCode/hypha
Issue tương tự
-
ai-driven-fuzzing bug claude Minor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
linagora/cozy-client#1777 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[guide] AGENTS.md claims the coverage gate, e2e and full lint run on every PR after ADR 0011 focused validationCó thể đã có người làm @hivecommons-hive đã nhận hôm nay. Đang mởagent/guide documentation hive/claimed-by-guide stage/040-covered-by-pr
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 81/100
cncf/endusers#2006 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
check:passed feeds:add
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 4 ngày
-
CMS video element: "CmsVideoPlugin" sets `volume = 0`, so videos cannot be unmuted on Android ChromeĐang mởneeds-triage Platform(Default)
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
all-contributors/cli#587 ·
Maintainer thường phản hồi trong vòng 1 ngày