Fixed caret positioning in IE10.

Fixes #1.