Thread:Extension talk:WYSIWYG/IE11 with MW 1.22.0 + WYSIWYG extension: Existing category definitions will corrupt after after page has been saved/reply

Browser sniffing is bad practice. Instead, try replacing the above block with the following: textContent should be correctly supported in IE11 and other up-to-date browsers, while IE<11 could still use the fallback property.