https://bugzilla.wikimedia.org/show_bug.cgi?id=30291
Web browser: ---
Bug #: 30291
Summary: wikibits's function updateTooltipAccessKeys should not
throw errors
Product: MediaWiki
Version: unspecified
Platform: All
URL: https://secure.wikimedia.org/wikibooks/en/w/index.php?
title=MediaWiki_talk:Common.js&oldid=2155725&diff=prev
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Javascript
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
See the url above for the usecase.
In that case the nodeList is an array having only one element which is
undefined.
The error can be avoided by changing the line[1]
element = nodeList[i];
to something like:
element = nodeList[i];
if (!element) {
continue;
}
[1] On this loop:
http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/wikibits.js?annotate=91660#l230
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l