https://bugzilla.wikimedia.org/show_bug.cgi?id=10407
--- Comment #6 from Splarka <h...@goldrush.com> 2009-07-29 04:21:45 UTC --- (In reply to comment #5) > On http://en.wikipedia.org/wiki/Special:Watchlist, I get a javascript error > every time I refresh due specifically to this bug. The following line is in > the > header section > > <script type="text/javascript" > src="http://en.wikipedia.org/w/index.php?title=-&action=raw&gen=js&useskin=monobook"><!-- > site js --></script> > > Because the ampersands are not handled correctly, that line returns an html > text page instead of the expected javascript. > > This has just started happening in the last day or so. > No, that's normal, this bug is about & being replaced with & in the <script> body, not in the src parameter value. For example: <html><script type="text/javascript">if(skin && stylepath) alert('woo')</script></html> will break, whereas <html><script type="text/javascript" src="http://en.wikipedia.org/w/index.php?title=MediaWiki:Common.js/watchlist.js&action=raw&ctype=text/javascript"></script></html> will correctly escape the & to & and the browser expects and understands this. What error are you getting exactly? that gen=js appears on every page load, not just watchlists, and is what loads MediaWiki:Common.js and MediaWiki:SKINNAME.js (probably Monobook). http://en.wikipedia.org/wiki/MediaWiki:Common.js/watchlist.js is loaded just on the watchlist page, so possibly an error there. -- 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 Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l