');
}
}
html.push("");
@@ -637,8 +643,9 @@
navigator.clipboard.writeText(output);
}
- // On hover, show the differen between expected and actual result.
- function hoverDiffText(element) {
+ // On hover, show the difference between expected and actual result
+ // in the named area.
+ function hoverDiffText(element, diff_area) {
// First, get the row of this item.
const row = element.parentNode;
const text1 = row.children[1].innerHTML;
@@ -651,7 +658,6 @@
dmp.diff_cleanupSemantic(diff_text);
// And show the difference nicely.
const ds = dmp.diff_prettyHtml(diff_text);
- const diff_area = document.getElementById("diff_area");
diff_area.innerHTML = ds;
}
@@ -672,7 +678,7 @@