Page MenuHomePhabricator

jquery.ime jumps forward after every character when there is pre-existing text in IE
Closed, ResolvedPublic

Description

While using Internet Explorer, UniversalLanguageSelector has a strange behavior of replacing/overwriting characters when Gujarati is used as language. Having said that, when Gujarati is enabled, while correcting any existing text, it does the same as typing in "Insert" mode.

Another problem there is, after entering stroke/creating new paragraph it stops working.


Version: unspecified
Severity: major

Details

Reference
bz43904

Event Timeline

Hmm, I tried it in IE8. The breakage is pretty bad, and not just for Gujarati. If there is existing text in the textarea, the cursor jumps forward after every character.

abhishek wrote:

Fixed the bug , We missed to encorporate the behavior of IE of ignoring "\n" when computing the start & end positions :-)

https://github.com/wikimedia/jquery.ime/pull/108/commits

abhishek wrote:

(In reply to comment #2)

Fixed the bug , We missed to encorporate the behavior of IE of ignoring "\n"
when computing the start & end positions :-)

https://github.com/wikimedia/jquery.ime/pull/108/commits

I completely forgot doing so brutally will just force to editing bugs ! Its broken

I recently upgraded to IE10 beta, and noticed that nearly the same behavior. In Search and summary fields, when Narayam is enabled, it jumps a character after a space. If typed continuously, it behaves well. Not sure it is worth taking up as the same bug or need filing a new bug.

The problem with the jumping cursor on IE8 was fixed, mostly by Praveen Singh, in https://github.com/wikimedia/jquery.ime/pull/171 . This fix will be deployed on translatewiki.net some time soon.

There are still issues on IE9 and IE10, however.

Related URL: https://gerrit.wikimedia.org/r/62810 (Gerrit Change I34e8ad3e82ffa23f03b5ddf25e92d850991abb43)

Fixed for IE 8, 9, 10, with a lot of help from Praveen Singh.