Strangely this is broken only in Firefox and Opera (IE, Chrome and Safari works as it should).
Any suggestions for a quick fix?
The Patrigan answer is correct, but there's a slightly better way to specify the cancel, such as:
{cancel: 'input,textarea,button,select,option,[contenteditable]'}