Commit 2e1e98d7 authored by Mathieu Giraud's avatar Mathieu Giraud

js/segmenter.js: fix the aligner

setAttribute, and not addAttribute, and further typo
parent cba89d2d
......@@ -1028,9 +1028,9 @@ Sequence.prototype = {
if (segment.aligned && self != other) {
var span = document.createElement('span');
span.className = 'substitution';
span.addAttribute('other', other + '-' + segment.first_clone);
span.setAttribute('other', other + '-' + segment.first_clone);
span.appendChild(document.createTextNode(self));
return "<span class='substitution' other='" + other + '-' + segment.first_clone + "'>" + self + "</span>"
return span;
}else {
return document.createTextNode(self);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment