Last modified: 2013-12-17 10:10:31 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T40500, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38500 - [Regression] jquery.ui.slider breaks IE9 on hewiki
[Regression] jquery.ui.slider breaks IE9 on hewiki
Status: NEW
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.20.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: code-update-regression
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-19 16:13 UTC by kipod
Modified: 2013-12-17 10:10 UTC (History)
4 users (show)

See Also:
Web browser: Internet Explorer
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description kipod 2012-07-19 16:13:40 UTC
problem is that the jquery.ui.slider creates a knob which is an anchor element, whose href is "#". this causes IE to jump to the top of the page as soon as one clicks on the knob in order to use the slider. this makes the slider practically unusable.

REPRODUCTION:

1) create a wikipage, add enough lines to push current location so it's unvisible when you are at top of page.
2) below this, create a new div, with class = "slidertest".
3) create a script like so:
$(function() {
mw.loader.using('jquery.ui.slider', function() {
$('div.slidertest').slider(
{
			max: 150,
			min: 50,
			value: 77
});
});
});
4) open the page in IE, and try to move the slider knob.
5) note that you can move the slider knob in chrome and ff, but in ie, as soon as you click on it, the page jumps to the top.

WORKAROUND:
i do not have one - will be grateful for anything, even if it means adding some junk to my (clean and nice) scripts.

peace.
Comment 1 kipod 2012-07-19 16:47:50 UTC
additional information:
tested on IE9. problem happens with "compatibility mode" both "On" and "Off".


apparently same problem does not occur on the page

http://jqueryui.com/demos/slider/

maybe it's newer version of jquery ui, but maybe we did something that actually caused the issue. can't debug ie very much.
Comment 2 Krinkle 2012-07-20 01:56:36 UTC
Investigating.
Comment 3 Krinkle 2012-07-20 03:41:38 UTC
Can't reproduce on current master.

I tested with BrowserStack on IE9 and tunnelled my localhost running the latest master.
Comment 4 kipod 2012-07-27 08:55:28 UTC
seems to be happening on hewiki. can you please try it there? might be some problem stemming from interaction with an existing script there.
Comment 5 matanya 2012-07-27 10:28:07 UTC
Tested with IE9 on hewiki, and got reproduced.
Comment 6 Andre Klapper 2013-12-17 10:10:31 UTC
I only see hewiki mentioned here, so this might not be an issue in jquery but a local script/gadget/whatever interfering.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links