プロジェクト

全般

プロフィール

Vote #77465

完了

!>image.png! generates invalid HTML

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Text formatting_26
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

90%

予定工数:
category_id:
26
version_id:
118
issue_org_id:
22898
author_id:
14446
assigned_to_id:
1
comments:
8
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Redmine's RedCloth (current trunk r15425) generates the following HTML:

Input: !>test.png! Paragraph with floating image

Output:

Paragraph with floating image

The @div@ within the @p@ is not allowed, therefore HTML parsers will autoclose the @p@, the @div@ becomes a sibling to it, the text content will become another sibling and the closing @p@ will trigger another empty @p@ element.

This is what's generated in Firefox's DOM:

Paragraph with floating image

.

The attached patch simply adds a @span@ instead of a @div@ and therefore generates the expected DOM structure.


journals

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Confirmed the problem. Firebug reports the DOM like the following. We can see "<p> </p>".

!firebug-output.png!

Setting target version to 3.3.0.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

blocks,New,22923,Export Wiki to ODT

Admin Redmine さんが約4年前に更新

  • カテゴリText formatting_26 にセット
  • 対象バージョン3.2.3_118 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0