Fixes issue with html comments and message quoting
authorMatthias Schmidt <gravatronics@live.com>
Mon, 18 Nov 2013 21:15:01 +0000 (22:15 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 18 Nov 2013 21:15:01 +0000 (22:15 +0100)
wcfsetup/install/files/js/WCF.Message.js

index 5734f9324893d916ac069e13b0285f708055183c..ce393fde9bf1bdd442b2d899c04bfd4a853b29f8 100644 (file)
@@ -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";