João Melo wrote:
I wouldn't do it. This will increase your maintenance cost unnecessarily.
Are you sure you really need to remove this? What is the business impact? Can you share screenshots with the results of having those script tags in your page?
Maybe we can help you finding another way to keep your users happy with your app.
Thank you for your response!
Well they need to be removed for the css only styling to work correctly: https://lea.verou.me/2011/01/styling-children-based-on-their-number-with-css3/.
Based on the children count the width of the children is to be changed. Now however there are two extra children one of which (the first) prevents the css class from working due to the name/identifier of the element being different from the children "I make" (the list items).
For now it is "solved" by removing the script tags using javascript after the static render of the page. But having to repeat this for every list I encounter this issue with isn't DRY. So it is not really about business impact or having unhappy users, but about the logic within outsytems and the way you need to work within it.