From 1b9e14a42b8f59323831d99466f4cd9b16e19058 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 26 Jun 2013 15:20:53 +0200 Subject: [PATCH] Fixes documentation --- wcfsetup/install/files/js/WCF.Message.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.Message.js b/wcfsetup/install/files/js/WCF.Message.js index be33f096e3..a50abce16b 100644 --- a/wcfsetup/install/files/js/WCF.Message.js +++ b/wcfsetup/install/files/js/WCF.Message.js @@ -3019,8 +3019,9 @@ WCF.Message.UserMention = Class.extend({ $offsets.top += $jElement.height(); // add line height to top offset // merge text nodes before and after the temporary span element - // to avoid split text nodes at where one before which causes - // problems working with ranges and remove merged text node + // to avoid split text nodes which were one node before inserting + // the span element since split nodes can cause problems working + // with ranges and remove merged text node if (!$.browser.mozilla) { // firefox doesn't need this correction! $element.previousSibling.nodeValue += $element.nextSibling.nodeValue; $($element.nextSibling).remove(); -- 2.20.1