[JIRA] (JENKINS-61670) Attribute like e.g. class gets lost from HTML code in description fields

0 views
Skip to first unread message

l.wolter@his.de (JIRA)

unread,
Mar 24, 2020, 3:14:03 PM3/24/20
to jenkinsc...@googlegroups.com
Lars created an issue
 
Jenkins / Bug JENKINS-61670
Attribute like e.g. class gets lost from HTML code in description fields
Issue Type: Bug Bug
Assignee: Unassigned
Components: antisamy-markup-formatter-plugin
Created: 2020-03-24 19:13
Environment: Jenkins 2.227
Priority: Major Major
Reporter: Lars

After upgrading the markup formatter plugin from 1.8 to 2.0 HTML code in system message, job description, build description and testresult description fields loses attributes like for example class attributes.

We use these HTML descriptions a lot and also use the Simple Theme Plugin to style them. Without CSS classes this is not really possible.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

dbeck@cloudbees.com (JIRA)

unread,
Mar 26, 2020, 6:49:02 AM3/26/20
to jenkinsc...@googlegroups.com

phoenix384@gmx.de (JIRA)

unread,
Apr 7, 2020, 8:13:02 AM4/7/20
to jenkinsc...@googlegroups.com
Lars commented on Improvement JENKINS-61670
 
Re: Attribute like e.g. class gets lost from HTML code in description fields

Why was this issue changed from "bug" to "improvement"? It worked before and is broken now and there was no need to change it. So it's a bug.

regs@akom.net (JIRA)

unread,
Apr 28, 2020, 9:05:02 AM4/28/20
to jenkinsc...@googlegroups.com

Likewise affected. 

Now, to style my descriptions I need to use the Simple Theme plugin, but since I can't add class to a div anymore, I need to use selectors like 

  div#description>div>div:nth-child(2)

to style them.

regs@akom.net (JIRA)

unread,
Apr 28, 2020, 9:48:02 AM4/28/20
to jenkinsc...@googlegroups.com
Alexander Komarov edited a comment on Improvement JENKINS-61670
Likewise affected. 

Now, to style my
job descriptions I need to use the Simple Theme plugin, but since I can't add *class* to a *div* anymore, I need to use selectors like 

  *div#description>div>div:nth-child(2)*

to style them.
  Or, I suppose, I can switch to using *style=""* since all my job descriptions are generated with Job DSL anyway.
Reply all
Reply to author
Forward
0 new messages