From: Matthias Schmidt Date: Mon, 18 Nov 2013 21:15:01 +0000 (+0100) Subject: Fixes issue with html comments and message quoting X-Git-Tag: 2.0.0_RC_2~17 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a71bf1ad5b5347f8ebf89f10898591029c934d1d;p=GitHub%2FWoltLab%2FWCF.git Fixes issue with html comments and message quoting --- diff --git a/wcfsetup/install/files/js/WCF.Message.js b/wcfsetup/install/files/js/WCF.Message.js index 5734f93248..ce393fde9b 100644 --- a/wcfsetup/install/files/js/WCF.Message.js +++ b/wcfsetup/install/files/js/WCF.Message.js @@ -1739,6 +1739,10 @@ WCF.Message.Quote.Handler = Class.extend({ nodeText += node.childNodes[i].nodeValue; } else { + if (!node.childNodes[i].tagName) { + continue; + } + var $tagName = node.childNodes[i].tagName.toLowerCase(); if ($tagName === 'li') { nodeText += "\r\n";