var desc;
if (is_defined(title)) {
desc = title;
- } else {
+ } else if (is_defined(href)) {
desc = href;
+ } else {
+ desc = "Preliminary error";
}
res[j] = document.createElement("input");
var choicedesc = choice.getAttribute("desc");
var title = "<H3>Disambiguation failed</H3>";
- var subtitle = "<p>Errors at node " + choiceno + " = " + choicedesc + "</p>";
+ var subtitle = "<p>Errors at node " + cpno + " = " + choicedesc + "</p>";
disambcell.innerHTML = title + subtitle;
var failures = get_failure_opts(cpno,choiceno);