MediaWiki diskusija:Monobook.js
monobook errors[labot pirmkodu]
Hi. There are some errors coming from this script.
Exception in module-execute in module site: load.php:178:1
TypeError: document.attachEvent is not a function TypeError: document.attachEvent is not a function
(more detail at https://phabricator.wikimedia.org/P1945 )
I asked on IRC, and a developer replied:
- https://lv.wikipedia.org/wiki/MediaWiki:Monobook.js "document.attachEvent" only works in old versions of IE
- they can rewrite it as `document.attachEvent && document.attachEvent("onreadystatechange", fixIEScroll);`
- but I wonder whether that code is still needed...it seems very old
Hope that helps. Quiddity (WMF) (diskusija) 20:29, 28 augustā, 2015 (EEST)