`DocumentFragment.childElementCount` is not supported in IE11/Edge
authorAlexander Ebert <ebert@woltlab.com>
Wed, 7 Feb 2018 12:13:17 +0000 (13:13 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 7 Feb 2018 12:13:17 +0000 (13:13 +0100)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabDropdown.js

index 5040bf4d9fd5bd711e930b31ddfea05b579c4954..b471e674df5e95531f04356512087f0802c2c472 100644 (file)
@@ -31,7 +31,7 @@ $.Redactor.prototype.WoltLabDropdown = function() {
                                        }
                                }
                                
-                               if (fragment.childElementCount > 0) {
+                               if (fragment.children.length > 0) {
                                        $dropdown[0].rel = name;
                                        $dropdown[0].appendChild(fragment);
                                }