From a71bf1ad5b5347f8ebf89f10898591029c934d1d Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 18 Nov 2013 22:15:01 +0100 Subject: [PATCH] Fixes issue with html comments and message quoting --- wcfsetup/install/files/js/WCF.Message.js | 4 ++++ 1 file changed, 4 insertions(+) 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"; -- 2.20.1