aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--data/lib/util.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/lib/util.js b/data/lib/util.js
index 611d353..6256171 100644
--- a/data/lib/util.js
+++ b/data/lib/util.js
@@ -140,10 +140,10 @@ function createDeadLink (id, text, parent, callback, params, before, covered, ac
locParent.appendChild(newAElem);
if ((before === "br") || (before === true)) {
- locParent.appendChild(document.createElement("br"));
+ locParent.insertBefore(document.createElement("br"), newAElem);
}
else if (before === "dash") {
- locParent.appendChild(document.createTextNode("\u00A0-\u00A0"));
+ locParent.insertBefore(document.createTextNode("\u00A0-\u00A0"), newAElem);
}
else if (before === "parens") {
locParent.appendChild(document.createTextNode(")"));