From: Ian Jackson Date: Sun, 12 Jul 2020 21:11:34 +0000 (+0100) Subject: bugfix X-Git-Tag: otter-0.2.0~1336 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=3fee3d7c9da9cccd705ead615213094ed3b09915;p=otter.git bugfix --- diff --git a/templates/script.ts b/templates/script.ts index 1363d87c..94e2d06b 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -261,7 +261,8 @@ function redisplay_ancillaries(piece: PieceId, p: PieceInfo) { for (let celem = p.pelem.firstElementChild; celem != null; - celem = celem.nextElementSibling) { + celem = nextelem) { + var nextelem = celem.nextElementSibling let thref = celem.getAttributeNS(null,"href"); if (thref == href) { celem.remove();