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

[project-inheritance] Extract inline event handlers in form/range.jelly

XMLWordPrintable

      Problems

      == Inline Event Handler
      Line: 97
      ----
      <input
      			type="text" size="3"
      			value="${attrs.value ?: instance[attrs.field] ?: attrs.default}"
      			onchange="this.parentNode.getElementsBySelector(&quot;input&quot;)[1].value=this.value"
      		/>
      ----
      
      == Inline Event Handler
      Line: 102
      ----
      <m:input xmlns:m="jelly:hudson.util.jelly.MorphTagLibrary"
      			class="intel_ui ${attrs.checkUrl!=null?'validated':''} ${attrs.clazz}"
      			style="width:95%"
      			name="${attrs.name ?: '_.'+attrs.field}"
      			value="${attrs.value ?: instance[attrs.field] ?: attrs.default}"
      			type="range"
      			min="${attrs.minValue}"
      			max="${attrs.maxValue}"
      			step="${attrs.step}"
      			ATTRIBUTES="${attrs}" EXCEPT="field clazz onchange"
      			onchange="this.parentNode.getElementsBySelector(&quot;input&quot;)[0].value=this.value"
      		/>
      ----
      

      Solution

      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: