From: Matthias Schmidt Date: Thu, 14 Jul 2016 17:45:40 +0000 (+0200) Subject: Fix check in Clipboard.js for parent's class X-Git-Tag: 3.0.0_Beta_1~1134 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b563e2592a7f26ac006fb724d7e8c6a7d5290cf9;p=GitHub%2FWoltLab%2FWCF.git Fix check in Clipboard.js for parent's class `Document` has no property `classList`. --- diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Controller/Clipboard.js b/wcfsetup/install/files/js/WoltLab/WCF/Controller/Clipboard.js index 41d2073727..c0e8cbde9d 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Controller/Clipboard.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Controller/Clipboard.js @@ -540,7 +540,7 @@ define( var parent = data.markAll; while (parent = parent.parentNode) { - if (parent.classList.contains('columnMark')) { + if (parent instanceof Element && parent.classList.contains('columnMark')) { parent = parent.parentNode; break; }