diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-03-31 00:35:44 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-03-31 00:35:44 +0200 |
commit | b2a2b75ea99517d2f61c24c82f8d6891392f51fc (patch) | |
tree | d29546bce610f770fcd74066e0c2fc5849ada24d /data | |
parent | fbc99330b8eb0a8c858237cdfb92d13c77490c6c (diff) | |
download | bugzilla-triage-b2a2b75ea99517d2f61c24c82f8d6891392f51fc.tar.gz |
Fix order of covering elements in createDeadLink.
Diffstat (limited to 'data')
-rw-r--r-- | data/lib/util.js | 4 |
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(")")); |