Support Article

Tags are getting misplaced when source for paragraph is viewed

SA-37389

Summary



The tags are getting misplaced when user view source for paragraph with Pega 7.1.9.


Error Messages



Not Applicable


Steps to Reproduce

  1. Create a Paragraph rule.
  2. Go to source code
  3. Paste the below text:

<ul>
<li>&nbsp;
<ul><pega:when name="SampleWhenRule"> </pega:when>
<li>&nbsp;</li>
</ul>
</li>
</ul>

4. Toggle the source code button observe the un-ordered list elements get rendered multiple times.


Root Cause



As identified the root cause, this is due to applying the when rules to HTML block elements.

Resolution



Type: Local-change

Local-change: User requested not to use When rule for HTML block elements, When rule should be configured to inline block elements (span tag) like below:

Changes made :


<ul>
<li>&nbsp;
<ul>
<li><pega:when name="SampleWhenRule">&nbsp; </pega:when></li>
</ul>
</li>
</ul>

Published May 3, 2017 - Updated May 16, 2017

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.