From e8f3333e192b13e31291713fbcdd86fcf3c684ca Mon Sep 17 00:00:00 2001 From: Zhicheng Wang Date: Sat, 14 May 2016 20:59:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E7=9B=AE=E5=BD=95=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E6=97=A0=E6=B3=95=E5=9C=A8=E5=8F=91=E5=B8=83=E7=89=88?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/resources/js/translate.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/resources/js/translate.js b/public/resources/js/translate.js index 5f61b37e3b..671c856f97 100644 --- a/public/resources/js/translate.js +++ b/public/resources/js/translate.js @@ -10,7 +10,8 @@ prevNode.classList.add('original-english'); } node.title = prevNode.innerText; - node.id = prevNode.id; + node.setAttribute('id', prevNode.id); + prevNode.removeAttribute('id'); node.classList.add('translated'); node.classList.add('translated-cn'); }