Vote #77465
完了!>image.png! generates invalid HTML
90%
説明
Redmine's RedCloth (current trunk r15425) generates the following HTML:
Input: !>test.png! Paragraph with floating image
Output: 
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: The attached patch simply adds a @span@ instead of a @div@ and therefore generates the expected DOM structure.
Paragraph with floating image.
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