Last modified: 2012-09-27 01:10:40 UTC
See the javascript module "skins.vector" http://bits.wikimedia.org/en.wikipedia.org/load.php?debug=true&lang=de&modules=skins.vector&only=scripts&skin=vector&* On line 7 the following thing is done: $( 'h5:first a:first', this ) This could not work - "first" is no valid css pseudo-class, leading to an javascript error in the jQuery library. Maybe "first-child" is meant, but I do not really now, what the purpose of this script is, so I don't really know how to fix it. At least it's annoying to have JavaScript errors thrown ;).
This should work - http://api.jquery.com/first-selector/ - and it does work for me in FF 13: No JavaScript error and when I click the dropdown for move etc. it stays open as expected.
As written on this page: "Because :first is a jQuery extension and not part of the CSS specification, queries using :first cannot take advantage of the performance boost provided by the native DOM querySelectorAll() method.". But the "h5:first a:first" is passed to querySelectorAll(). I now had a closer look at this and firefox doesn't throw an error because of a catch statement, but at least it seems weird to me to call a function which unavoidable throws an error and then catch it... The call tree is: line 7 of skins.vector (see original bug report) line 27 of mediawiki jquery (jquery constructor) line 192 of mediawiki jquery (init function) line 5431 of mediawiki jquery (find function) line 5163 of mediawiki jquery on line 5163 context.querySelectorAll( "[id='" + nid + "'] " + query ) is called and query is "h5:first a:first". This throws an SYNTAX_ERR which is cached at line 5166. I'm okay with closing this bug because I didn't see the catch statement. But if there is an easy fix not calling querySelectorAll() with these parameters it would be cool, too ;).
If you used the Chrome Developer Tools to find this error, make sure you set the exception listener to the second state (purple: pause on uncaught exceptions) as opposed to the first state (blue: pause on all exceptions). Either way, this is not a MediaWiki bug. If anything, it is an enhancement request for jquery internally. If you feel like pursuing it further, feel free to bug it up at bugs.jquery.com. Closing as invalid.