Last modified: 2010-05-15 15:38:12 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 T4866, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 2866 - IE 5.2.3 for Mac problem
IE 5.2.3 for Mac problem
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
1.5.x
Macintosh Mac OS X 10.4
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: javascript
  Show dependency treegraph
 
Reported: 2005-07-15 03:35 UTC by james prochnik
Modified: 2010-05-15 15:38 UTC (History)
0 users

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


Attachments

Description james prochnik 2005-07-15 03:35:20 UTC
I am using IE 5.2.3 on my Mac osX 10.4.2 system

Whenever I load ANY wikipedia page, i get an Internet Explorer Script Alert message "handler could not be removed"

I asked    http://ask.metafilter.com/   about the problem, and they said it may be javascript on your end.

Here is what a poster told me:

Not your browser, just some wonky javascript:


function addEvent(elm, evType, fn, useCapture)
// addEvent and removeEvent
// cross-browser event handling for IE5+, NS6 and Mozilla
// By Scott Andrew
{
if (elm.addEventListener){
elm.addEventListener(evType, fn, useCapture);
return true;
} else if (elm.attachEvent){
var r = elm.attachEvent("on"+evType, fn);
return r;
} else {
alert("Handler could not be removed");
}
}


It checks for a couple of event-binding methods and if they're not available in your browser (they're not in IE Mac), it pops the alert message. 
Replacing the alert with old-school bracket notation event binding ought to fix it:

elm['on'+evType]=fn;


Is this the problem?  Or is it on my end?

Thanks

James
Comment 1 Brion Vibber 2005-07-15 04:33:17 UTC
Experimental patch from bug 2001 which caused this; I've backed it out.


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


Navigation
Links