summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimotheus Kampik <timotheus.kampik@gmail.com>2019-01-12 14:48:35 +0100
committerTimotheus Kampik <timotheus.kampik@gmail.com>2019-01-12 14:48:35 +0100
commitc761ec248b00333db007a5286e950f9c2d12d146 (patch)
tree2dd43b4d196d524202d3ff334f5e6302372e22dc
parent6aea6f3ebc4859ac58a43c3ac3e4cb6325d9a483 (diff)
downloadsphinx-git-c761ec248b00333db007a5286e950f9c2d12d146.tar.gz
#5258 test after control merge & polish
-rw-r--r--sphinx/themes/basic/static/doctools.js1
-rw-r--r--tests/js/doctools.js1
2 files changed, 0 insertions, 2 deletions
diff --git a/sphinx/themes/basic/static/doctools.js b/sphinx/themes/basic/static/doctools.js
index 194f096ac..b33f87fcb 100644
--- a/sphinx/themes/basic/static/doctools.js
+++ b/sphinx/themes/basic/static/doctools.js
@@ -94,7 +94,6 @@ jQuery.fn.highlightText = function(text, className) {
rect.width.baseVal.value = bbox.width;
rect.height.baseVal.value = bbox.height;
rect.setAttribute('class', className);
- var parentOfText = node.parentNode.parentNode;
addItems.push({
"parent": node.parentNode,
"target": rect});
diff --git a/tests/js/doctools.js b/tests/js/doctools.js
index c569bcb8a..37064334a 100644
--- a/tests/js/doctools.js
+++ b/tests/js/doctools.js
@@ -59,7 +59,6 @@ describe('jQuery extensions', function() {
'</text>' +
'</svg>' +
'</span>');
- $("#svg-highlight-test").html($("#svg-highlight-test").html());
jQuery(document.body).append(highlightTestSvg);
highlightTestSvg.highlightText(cyrillicTerm, 'highlighted');
highlightTestSvg.highlightText(umlautTerm, 'highlighted');