Details
-
Bug
-
Resolution: Fixed
-
Major
-
1.7 M3
-
None
-
image,rendering,links
-
Unit
-
Description
Consider the following xhtml input to the xhtml->xwiki/2.0 parser :
<html><p><!--startwikilink:http://xwiki.org--><span class="wikiexternallink"><a href="http://xwiki.org"><!--startimage:attach.png--><img src="/xwiki/bin/download/currentdoc/attach.png" class="wikimodel-freestanding" alt="attach.png" height="100" width="100"/><!--stopimage--></a></span><!--stopwikilink--></p></html>
The corresponding xwiki/2,0 output should be :
[[image:attach.png>>http://xwiki.org||height="100" width="100"]]
But the actual output seems to be missing the height & width attributes from the xwiki output.
Here is a complete rendering test case for this scenario:
.#----------------------------------------------------- .input|xhtml .#----------------------------------------------------- <p><!--startwikilink:http://xwiki.org--><span class="wikiexternallink"><a href="http://xwiki.org"><!--startimage:attach.png--><img src="/xwiki/bin/download/currentdoc/attach.png" class="wikimodel-freestanding" alt="attach.png" height="100" width="100"/><!--stopimage--></a></span><!--stopwikilink--></p> .#----------------------------------------------------- .expect|xwiki .#----------------------------------------------------- [[image:attach.png>>http://xwiki.org||height="100" width="100"]]