WYMeditor image upload dialog: unclosed `<select>` gives a console warning
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 20/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- html, javascript
- 領域
- frontend
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- JavaScript
- スター
- 5
- フォーク
- 9
- 平均マージ
- 18時間 7分
- マージ済み PR(30日)
- 11
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PlanBCode/hypha のほかの issue
-
Component: User interface Impact: Low Level: Easy Pagetype: Peer reviewed article Type: Bug Value: Visitors
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
Impact: Medium Level: Easy Type: Bug Value: Users
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
Impact: Low Level: Easy Pagetype: Festival Type: Bug Value: Coders
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
Impact: Medium Level: Easy Pagetype: Mailinglist Type: Bug Value: Users
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 1 日以内に返信
-
Impact: Low Level: Easy Type: Bug Value: Coders
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
PlanBCode/hypha#586 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
PlanBCode/hypha の issue をすべて見る
似ている issue
-
FEATURE REQUEST
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
linuxmint/cinnamon-spices-extensions#1193 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Fei2411/DeepSeek-Bot#703 ·
-
area:web first-timers-only good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
career-ops-hq/career-ops#6264 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 83/100
cline/mcp-marketplace#3394 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
exelearning/exelearning#2677 ·
メンテナーはふだん 1 日以内に返信