Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
14.4.7, 14.9, 13.10.10
-
Unit
-
Unknown
-
N/A
-
N/A
-
Description
Steps to reproduce:
- Open any document in the WYSIWYG editor.
- Insert a content macro using the dialog. Set content to <p>Hello World!</p> and syntax to html/5.0.
- Switch to source.
Expected result:
Wiki syntax containing the content macro.
Actual result:
The content
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><body><!--startmacro:content|-|syntax="html/5.0"|-|<p>Hello World.</p>--><div data-xwiki-syntax="HTML 5.0" data-xwiki-non-generated-content="java.util.List<org.xwiki.rendering.block.Block>" class="xwiki-metadata-container"><p>Hello World.</p></div><!--stopmacro--><p> </p></body></html>
is displayed.
This is a regression introduced in XRENDERING-685 because while the metadata is correct now, the correct metadata is incorrectly serialized into HTML as it can also be seen in the snippet above (the attribute data-xwiki-syntax="HTML 5.0" should have html/5.0 as value.
Attachments
Issue Links
- is caused by
-
XRENDERING-685 The content macro sets the syntax with wrong type, leading to cast errors
- Closed