Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#622 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@guidol-ive がすでに取り組んでいます。

2026年10月28日 から。

  • #626 @guidol-ive による — オープン

評価

難易度
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 の本文から書いたものです。

説明

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

主要言語
JavaScript
スター
5
フォーク
9
平均マージ
18時間 7分
マージ済み PR(30日)
11

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PlanBCode/hypha のほかの issue

PlanBCode/hypha の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。