Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.9 M1
-
Component/s: {Unused} Rendering 2.0
-
Labels:None
-
Tests:Unit
-
Similar issues:
Description
Consider the following passing test case:
.#----------------------------------------------------- .input|xhtml/1.0 .#----------------------------------------------------- <div class="xwiki-document"><p>Ok let's have an embedded document.</p><p>(some text in brackets)</p></div> .#----------------------------------------------------- .expect|xwiki/2.0 .#----------------------------------------------------- (((Ok let's have an embedded document. (some text in brackets))))
Now if we reverse the input and output, the test case fails:
.#----------------------------------------------------- .input|xwiki/2.0 .#----------------------------------------------------- (((Ok let's have an embedded document. (some text in brackets)))) .#----------------------------------------------------- .expect|xhtml/1.0 .#----------------------------------------------------- <div class="xwiki-document"><p>Ok let's have an embedded document.</p><p>(some text in brackets)</p></div>
The actual xhtml output looks pretty weird. Following test case (passing) demonstrates the issue:
.#----------------------------------------------------- .input|xwiki/2.0 .#----------------------------------------------------- (((Ok let's have an embedded document. (some text in brackets)))) .#----------------------------------------------------- .expect|xhtml/1.0 .#----------------------------------------------------- <div class="xwiki-document"><p>Ok let's have an embedded document.</p><p>(some text in brackets</p></div><p>)</p>
This xhtml fragment does not render the content as we expect.