etch icon indicating copy to clipboard operation
etch copied to clipboard

etch editor works only in english version of IE

Open limuhob opened this issue 12 years ago • 1 comments

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; } }

limuhob avatar Feb 04 '13 14:02 limuhob

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."

hacking-robot avatar Feb 18 '13 13:02 hacking-robot