The following DHTML formatting commands work fine in a div with contentEditable=truein IE, Firefox, and Chrome:
document.execCommand("superscript", false, null);
document.execCommand("subscript", false, null);
However, calling the command again to remove formatting has no effect in Chrome.
Am I missing something or is this a bug in Chrome?
source
share