diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-03-31 00:35:44 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-06-05 14:44:01 +0200 |
commit | 461f09665a6a9be7700237f6b458b65ca38061d5 (patch) | |
tree | bf13b0b3d6585e176940aa4b81f8605e91d7d20f | |
parent | d82ae1ac86607cf902b874c60de55136127520a7 (diff) | |
download | bugzilla-triage-461f09665a6a9be7700237f6b458b65ca38061d5.tar.gz |
Fix order of covering elements in createDeadLink.
-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(")")); |