There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-84ecf476-115e-45a6-b820-37ecbb0daff6 XWIKI-13997 Open

Page/editor corruption caused by inlined display/include macro that references block content

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-98e46218-262a-4e1d-887e-ad22193251df Clemens Robbenhaar on 25/Feb/26 13:38
 

Copy over my comment from duplicate XWIKI-24052

I can think of two ways to fix the issue:

  • forbid inline use of the display macro (and others) - this might break backwards compatibility, especially if the macro is used in scripts where the macro is indented for better readability
  • let the macro renderer smell that it is user in edit mode and an inline context, and then do not display its contents (but maybe a notice why it's content is not displayed, though I am not sure how well this works in line mode).

I prefer the second solution. Having a big bunch of content displayed which is not editable anyway seems not to be user friendly anyway, IMHO.

Then this does not fix the issue that the public view will display invalid HTML. (From a browser point of view this might not batter much, they sure have seen worse ...)