Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-74156

[cucumber-testresult-plugin] Extract inline script block and event handler in org/jenkinsci/plugins/cucumber/jsontestsupport/__CucumberTestResultAction/summary.jelly

XMLWordPrintable

      Problems

      == Inline Script Block
      Line: 29
      ----
      <script type="text/javascript">
          function showFailures() {
      
          var elms = document.getElementsByClassName("hidden");
          for(var i = 0; i &lt; elms.length; i++) {
          elms[i].style.display = "";
          }
          elm = document.getElementById("showLink");
          elm.style.display = "none";
          }
        </script>
      ----
      
      == Inline Event Handler
      Line: 77
      ----
      <a id="showLink" name="editFailuresLink"
                 href="#showFailuresLink"
                 onclick="javascript:showFailures()">
      ----
      

      Solutions

      https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks
      https://www.jenkins.io/doc/developer/security/csp/#inline-event-handlers

            Unassigned Unassigned
            basil Basil Crow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: