Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
13.10.3
-
None
-
Unknown
-
Description
XWikiDocument#display always wraps the output in an html macro if the displayer produces html. The problem is that it does not check if we are already inside an html macro, which might lead to bad pattern such as closing an html macro before calling display() or even, stripping the html macro wrapping after the call.
The method should probably checks if we're already inside an html macro to avoid this wrapping in such case.
See an example of such usage: https://github.com/xwiki/xwiki-platform/pull/1733#discussion_r774453667
Attachments
Issue Links
- is related to
-
XWIKI-19503 Wiki toolbar breaks the html macro when using displayEdit
- Open
-
XWIKI-7517 Add support for displaying properties in the {{display}} macro
- Open