* (bug 35201) Edit buttons no longer cause jump in IE 9
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 13 Mar 2012 22:38:14 +0000 (22:38 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 13 Mar 2012 22:38:14 +0000 (22:38 +0000)
commita6d0faaa217e465b6cf900c2d46f6116e206d83e
tree4b47cb97d4c3958441ead3598d7bdf38e11f32eb
parentcf50df76b305f2f1cce3ab8e3184b0cbd05a219a
* (bug 35201) Edit buttons no longer cause jump in IE 9

Changed order of feature-detection checks so we prefer the IE method over the Mozilla method in encapsulateSelection. Fixes a problem where IE9 triggered the Mozilla mode, then mysteriously scrolled to the top of the page.

(IE9 and IE10 add a lot of standard and semi-standard HTML APIs, so this sort of thing happens from time to time. :)
resources/jquery/jquery.textSelection.js