').parent()[0]; // xss-lint: disable=javascript-jquery-insertion
};
return AsyncProcess.array(captions, process).done(function(list) {
diff --git a/lms/templates/courseware/progress.html b/lms/templates/courseware/progress.html
index 1381896150..34596885f4 100644
--- a/lms/templates/courseware/progress.html
+++ b/lms/templates/courseware/progress.html
@@ -32,7 +32,7 @@ from django.utils.http import urlquote_plus
%block>
diff --git a/lms/templates/courseware/progress_graph.js b/lms/templates/courseware/progress_graph.js
index d8609f6b8d..8c1bb8c9d9 100644
--- a/lms/templates/courseware/progress_graph.js
+++ b/lms/templates/courseware/progress_graph.js
@@ -64,27 +64,27 @@ $(function () {
categoryData = categories[ section['category'] ]
- ## Because this is Python (Mako) embedded in JavaScript, our safe linting script is
+ ## Because this is Python (Mako) embedded in JavaScript, our xss linting script is
## thoroughly confused. We should rewrite this file to remove Python/Mako.
- ## safe-lint: disable=javascript-jquery-append
+ ## xss-lint: disable=javascript-jquery-append
categoryData['data'].append( [tickIndex, section['percent']] )
## Note that some courses had stored images in the Abbreviation. We are no longer
## allowing the display of such images, and remove any previously stored HTML
## to prevent ugly HTML from being shown to learners.
- ## safe-lint: disable=javascript-jquery-append
+ ## xss-lint: disable=javascript-jquery-append
ticks.append( [tickIndex, bleach.clean(section['label'], tags=[], strip=True)] )
if section['category'] in detail_tooltips:
- ## safe-lint: disable=javascript-jquery-append
+ ## xss-lint: disable=javascript-jquery-append
detail_tooltips[ section['category'] ].append( section['detail'] )
else:
detail_tooltips[ section['category'] ] = [ section['detail'], ]
if 'mark' in section:
- ## safe-lint: disable=javascript-jquery-append
+ ## xss-lint: disable=javascript-jquery-append
droppedScores.append( [tickIndex, 0.05] )
- ## safe-lint: disable=javascript-jquery-append
+ ## xss-lint: disable=javascript-jquery-append
dropped_score_tooltips.append( section['mark']['detail'] )
tickIndex += 1
@@ -107,7 +107,7 @@ $(function () {
else:
color = colors[ extraColorIndex % len(colors) ]
extraColorIndex += 1
- ## safe-lint: disable=javascript-jquery-append
+ ## xss-lint: disable=javascript-jquery-append
series.append({
'label' : section['category'] + "-grade_breakdown",
'data' : [ [overviewBarX, section['percent']] ],
@@ -131,7 +131,7 @@ $(function () {
descending_grades = sorted(grade_cutoffs, key=lambda x: grade_cutoffs[x], reverse=True)
for grade in descending_grades:
percent = grade_cutoffs[grade]
- ## safe-lint: disable=javascript-jquery-append
+ ## xss-lint: disable=javascript-jquery-append
grade_cutoff_ticks.append( [ percent, u"{0} {1:.0%}".format(grade, percent) ] )
else:
grade_cutoff_ticks = [ ]
@@ -284,7 +284,7 @@ $(function () {
edx.HtmlUtils.append(
$grade_detail_graph,
edx.HtmlUtils.joinHtml(
- // safe-lint: disable=javascript-concat-html
+ // xss-lint: disable=javascript-concat-html
edx.HtmlUtils.HTML(''),
edx.HtmlUtils.HTML(''),
gettext('Overall Score'),
diff --git a/lms/templates/discussion/_thread_list_template.html b/lms/templates/discussion/_thread_list_template.html
index 9102737619..e47bf34a0b 100644
--- a/lms/templates/discussion/_thread_list_template.html
+++ b/lms/templates/discussion/_thread_list_template.html
@@ -20,7 +20,7 @@
%endif
- ## safe-lint: disable=python-parse-error,python-wrap-html
+ ## xss-lint: disable=python-parse-error,python-wrap-html
${"<% if (isDiscussionDivisionEnabled && isPrivilegedUser) { %>" | n, decode.utf8}${"<% } %>" | n, decode.utf8}