etch
etch copied to clipboard
etch editor works only in english version of IE
Because you check the error message with english string "Invalid argument.", in other language versions of IE (no english) is this exeption always rethrown. The error message is localized.
try { document.execCommand('StyleWithCSS', false, false); } catch (err) { // expecting to just eat IE8 error, but if different error, rethrow if (err.message !== "Invalid argument.") { throw err; } }
I confirm this bug. My internet explorer 9 returns: "SCRIPT87: Argument non valide. etch.js, Ligne 276 Caractère 9"
So "Argument non valide" is not equal to "Invalid argument."