This issue has been created
 
 
XWiki Rendering / cid:jira-generated-image-avatar-a9b50307-ba0c-4575-9eaa-67ddf53201a1 XRENDERING-775 Open

Parenthesis before attributes not escaped

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-1c62da50-39df-4c71-84f6-4ebe3a4d8e3d Armin Günther created this issue on 04/Mar/25 15:30
 
Summary: Parenthesis before attributes not escaped
Issue Type: cid:jira-generated-image-avatar-a9b50307-ba0c-4575-9eaa-67ddf53201a1 Bug
Affects Versions: 16.10.3
Assignee: Unassigned
Components: Syntax - xwiki/2.1
Created: 04/Mar/25 15:30
Priority: cid:jira-generated-image-static-major-f8b85f36-b512-4550-ae1c-4a849cb2f047 Major
Reporter: Armin Günther
Description:

When converting the given HTML 5.0 example to XWiki 2.1 using the rendering API,
the last parenthesis of the text if (( before attributes given with (% ... %) is not escaped with ~, therefore the rendered XWiki 2.1 will be flawed.
Also, the second parametrization is missing the style part.

HTML 5.0

<span style="font-size: 12pt; font-family: Courier New, Courier New_MSFontService, monospace;">if ((</span><span style="font-size: 12pt; font-family: Courier New, Courier New_MSFontService, monospace;"><span class="SpellingError">depth_in_cm</span></span>

Converted XWiki 2.1

(% style="font-size: 12pt; font-family: Courier New, Courier New_MSFontService, monospace;" %)if (((% class="SpellingError" %)depth_in_cm