From b563e2592a7f26ac006fb724d7e8c6a7d5290cf9 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 14 Jul 2016 19:45:40 +0200 Subject: [PATCH] Fix check in Clipboard.js for parent's class `Document` has no property `classList`. --- wcfsetup/install/files/js/WoltLab/WCF/Controller/Clipboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1