Last modified: 2009-01-23 22:07:29 UTC
There are CSS and HTML errors in the currect centralnotice.js, which breaks every single wikipedia page at the moment! The first thing is, that there is no attribute "onClick" in XHTML, it should be "onclick", which occurs several times in the centralnotice.js The second thing only affects the german version: http://upload.wikimedia.org/centralnotice/wikipedia/de/centralnotice.js There you can find the line "{\n color: #006699;\n text-decoration: none;\n}" but without any class/id before it, so this is incorrect css, which triggers errors on the console...
It would be really helpful if you could reference which of the templates you saw this with. I'll sift through them and see where were inconsistent.
Looking at the JS output.... the CSS issue is in 2008_is_a_nonprofit_meter. The onClick thing I see several times, so check all the recently edited templates... (Note this one doesn't actually hurt anything, though it's technically wrong for XHTML. Should be "onclick" all lowercase.)
I walked through all the in use templates and changed case on any that were not lower case. Do let know if that pops up again. Checking on the classless definition now...
That rogue color seems to have crept from a missing .notice-wrapper a, .notice-collapsed-wrapper a I added those wherever they were missing (mostly in the meter templates) and we should be set now. Do let know if you still see those errors and thanks for pointing them out.
Thank you. All errors seem to be fixed.
The problem reoccured. See: http://upload.wikimedia.org/centralnotice/wikipedia/de/centralnotice.js?195xx or http://upload.wikimedia.org/centralnotice/wikipedia/en/centralnotice.js?195xx There you'll find: .notice-wrapper-election a, { color: #006699; } the comma there is wrong, so "color" will be interpreted like a selector, which will produce errors.
Good catch! I went ahead and removed the comma. For any new issues with notices feel free to cut a separate bugzilla ticket so that we can know how often this is hapinging uniquely.